{"action":"created","issue":{"url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/1193","repository_url":"https://api.github.com/repos/PHPMailer/PHPMailer","labels_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/1193/labels{/name}","comments_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/1193/comments","events_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/1193/events","html_url":"https://github.com/PHPMailer/PHPMailer/issues/1193","id":263771941,"number":1193,"title":"$mail->getSMTPInstance()->getLastTransactionID(); returning false where there is an actual Queue ID","user":{"login":"des4hosting","id":32625675,"avatar_url":"https://avatars2.githubusercontent.com/u/32625675?v=4","gravatar_id":"","url":"https://api.github.com/users/des4hosting","html_url":"https://github.com/des4hosting","followers_url":"https://api.github.com/users/des4hosting/followers","following_url":"https://api.github.com/users/des4hosting/following{/other_user}","gists_url":"https://api.github.com/users/des4hosting/gists{/gist_id}","starred_url":"https://api.github.com/users/des4hosting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/des4hosting/subscriptions","organizations_url":"https://api.github.com/users/des4hosting/orgs","repos_url":"https://api.github.com/users/des4hosting/repos","events_url":"https://api.github.com/users/des4hosting/events{/privacy}","received_events_url":"https://api.github.com/users/des4hosting/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-10-09T02:14:01Z","updated_at":"2017-10-09T13:41:16Z","closed_at":"2017-10-09T13:39:44Z","author_association":"NONE","body":"Hello,\r\n\r\nI use sendgrid.com to send my emails using PHPMailer 6.0.0\r\nI can send emails no problem the only thing is when trying to get the queue ID it is not working.\r\n\r\nI have read here https://github.com/PHPMailer/PHPMailer/issues/1123\r\nThat it was solved but it is not working for me\r\n\r\nrequire ('../vendor/autoload.php');\r\n$mail = new PHPMailer(true);\r\n\r\n// Server settings\r\n$mail->SMTPDebug = 2; // Uncomment for debugging\r\n$mail->isSMTP();\r\n$mail->Host = \"smtp.sendgrid.net\";\r\n$mail->SMTPAuth = true;\r\n$mail->Username = \"xxx\";\r\n$mail->Password = \"xxx\";\r\n$mail->SMTPKeepAlive = true; // SMTP connection will not close after each email sent, reduces SMTP overhead\r\n$mail->Port = 25;\r\n\r\nBelow is my SMTP debug\r\n\r\ncode before authentication removed and other replaced by xxxx for privacy\r\n2017-10-09 02:04:20 SERVER -> CLIENT: 235 Authentication successful\r\n2017-10-09 02:04:20 CLIENT -> SERVER: MAIL FROM:<xxxxxx>\r\n2017-10-09 02:04:20 SERVER -> CLIENT: 250 Sender address accepted\r\n2017-10-09 02:04:20 CLIENT -> SERVER: RCPT TO:<xxxxx>\r\n2017-10-09 02:04:20 SERVER -> CLIENT: 250 Recipient address accepted\r\n2017-10-09 02:04:20 CLIENT -> SERVER: DATA\r\n2017-10-09 02:04:20 SERVER -> CLIENT: 354 Continue\r\n2017-10-09 02:04:20 CLIENT -> SERVER: Date: Sun, 8 Oct 2017 22:04:19 -0400\r\n2017-10-09 02:04:20 CLIENT -> SERVER: To: xxxxx\r\n2017-10-09 02:04:20 CLIENT -> SERVER: From: xx <xxxxx>\r\n2017-10-09 02:04:20 CLIENT -> SERVER: Reply-To: xx <xxxxx>\r\n2017-10-09 02:04:20 CLIENT -> SERVER: Subject: test\r\n2017-10-09 02:04:20 CLIENT -> SERVER: Message-ID: <xxxx@xxxxxx>\r\n2017-10-09 02:04:20 CLIENT -> SERVER: X-Mailer: PHPMailer 6.0.0 (https://github.com/PHPMailer/PHPMailer)\r\n2017-10-09 02:04:20 CLIENT -> SERVER: MIME-Version: 1.0\r\n2017-10-09 02:04:20 CLIENT -> SERVER: Content-Type: multipart/alternative;\r\n2017-10-09 02:04:20 CLIENT -> SERVER: boundary=\"xxxx\"\r\n2017-10-09 02:04:20 CLIENT -> SERVER: Content-Transfer-Encoding: 8bit\r\n2017-10-09 02:04:20 CLIENT -> SERVER: \r\n2017-10-09 02:04:20 CLIENT -> SERVER: This is a multi-part message in MIME format.\r\n2017-10-09 02:04:20 CLIENT -> SERVER: --xxxx\r\n2017-10-09 02:04:20 CLIENT -> SERVER: Content-Type: text/plain; charset=us-ascii\r\n2017-10-09 02:04:20 CLIENT -> SERVER: \r\n2017-10-09 02:04:20 CLIENT -> SERVER: To properly view this message please switch or use an HTML compatible e-mail client.\r\n2017-10-09 02:04:20 CLIENT -> SERVER: \r\n2017-10-09 02:04:20 CLIENT -> SERVER: --xxxx\r\n2017-10-09 02:04:20 CLIENT -> SERVER: Content-Type: text/html; charset=us-ascii\r\n2017-10-09 02:04:20 CLIENT -> SERVER: \r\n2017-10-09 02:04:20 CLIENT -> SERVER: some body text\r\n2017-10-09 02:04:20 CLIENT -> SERVER: \r\n2017-10-09 02:04:20 CLIENT -> SERVER: --xxxx--\r\n2017-10-09 02:04:20 CLIENT -> SERVER: \r\n2017-10-09 02:04:20 CLIENT -> SERVER: .\r\n2017-10-09 02:04:20 SERVER -> CLIENT: 250 Ok: queued as r0k-aGYnQtWFOzqR_w\r\n2017-10-09 02:04:20 CLIENT -> SERVER: QUIT\r\n2017-10-09 02:04:20 SERVER -> CLIENT: 221 See you later\r\n\r\nthe output of $mail->getSMTPInstance()->getLastTransactionID() is\r\nbool(false) \r\n\r\nthe output of $mail->getSMTPInstance()->getLastReply() is\r\nstring(19) \"221 See you later \"\r\n\r\n\r\nWhat I really want is the 3rd reply from the bottom \r\n2017-10-09 02:04:20 SERVER -> CLIENT: 250 Ok: queued as r0k-aGYnQtWFOzqR_w\r\n\r\nAnd would like to have the queue ID \"**r0k-aGYnQtWFOzqR_w**\" returned after sending the message\r\n\r\n\r\nOne last thing not directly related to this, do I need to send <html></html> tags in the message?\r\n\r\nYour help is much appreciated\r\nThank you\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/comments/335161469","html_url":"https://github.com/PHPMailer/PHPMailer/issues/1193#issuecomment-335161469","issue_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/1193","id":335161469,"user":{"login":"Synchro","id":81561,"avatar_url":"https://avatars2.githubusercontent.com/u/81561?v=4","gravatar_id":"","url":"https://api.github.com/users/Synchro","html_url":"https://github.com/Synchro","followers_url":"https://api.github.com/users/Synchro/followers","following_url":"https://api.github.com/users/Synchro/following{/other_user}","gists_url":"https://api.github.com/users/Synchro/gists{/gist_id}","starred_url":"https://api.github.com/users/Synchro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Synchro/subscriptions","organizations_url":"https://api.github.com/users/Synchro/orgs","repos_url":"https://api.github.com/users/Synchro/repos","events_url":"https://api.github.com/users/Synchro/events{/privacy}","received_events_url":"https://api.github.com/users/Synchro/received_events","type":"User","site_admin":false},"created_at":"2017-10-09T13:41:15Z","updated_at":"2017-10-09T13:41:15Z","author_association":"OWNER","body":"It also trims all IDs now."}}
{"actor":{"display_login":"Synchro"}}