{"action":"created","issue":{"url":"https://api.github.com/repos/hoaproject/Mail/issues/21","labels_url":"https://api.github.com/repos/hoaproject/Mail/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/hoaproject/Mail/issues/21/comments","events_url":"https://api.github.com/repos/hoaproject/Mail/issues/21/events","html_url":"https://github.com/hoaproject/Mail/issues/21","id":87048896,"number":21,"title":"Unable to send email due to double EHLO command","user":{"login":"mgee","id":8101,"avatar_url":"https://avatars.githubusercontent.com/u/8101?v=3","gravatar_id":"","url":"https://api.github.com/users/mgee","html_url":"https://github.com/mgee","followers_url":"https://api.github.com/users/mgee/followers","following_url":"https://api.github.com/users/mgee/following{/other_user}","gists_url":"https://api.github.com/users/mgee/gists{/gist_id}","starred_url":"https://api.github.com/users/mgee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgee/subscriptions","organizations_url":"https://api.github.com/users/mgee/orgs","repos_url":"https://api.github.com/users/mgee/repos","events_url":"https://api.github.com/users/mgee/events{/privacy}","received_events_url":"https://api.github.com/users/mgee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hoaproject/Mail/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/hoaproject/Mail/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"Pierozi","id":5133487,"avatar_url":"https://avatars.githubusercontent.com/u/5133487?v=3","gravatar_id":"","url":"https://api.github.com/users/Pierozi","html_url":"https://github.com/Pierozi","followers_url":"https://api.github.com/users/Pierozi/followers","following_url":"https://api.github.com/users/Pierozi/following{/other_user}","gists_url":"https://api.github.com/users/Pierozi/gists{/gist_id}","starred_url":"https://api.github.com/users/Pierozi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pierozi/subscriptions","organizations_url":"https://api.github.com/users/Pierozi/orgs","repos_url":"https://api.github.com/users/Pierozi/repos","events_url":"https://api.github.com/users/Pierozi/events{/privacy}","received_events_url":"https://api.github.com/users/Pierozi/received_events","type":"User","site_admin":false},"milestone":null,"comments":16,"created_at":"2015-06-10T17:42:29Z","updated_at":"2015-06-15T19:41:01Z","closed_at":null,"body":"When sending an email via `somehost.com`  (replaced the original hostname) using `STARTTLS` and `AUTH LOGIN` the following exception is thrown:\r\n\r\n```\r\n[2015-06-10T17:06:25+00:00] \"Authentification failed (LOGIN) (code: 250, message: “somehost.com”).\" vendor/hoa/mail/Transport/Smtp.php:188\r\n```\r\n\r\nIn `Transport/Smtp.php` `EHLO` is send to the server twice. Once in https://github.com/hoaproject/Mail/blob/16b512403f75551a9990996bdbe8f0b05c895e86/Transport/Smtp.php#L216\r\nand a second time in\r\nhttps://github.com/hoaproject/Mail/blob/16b512403f75551a9990996bdbe8f0b05c895e86/Transport/Smtp.php#L231\r\n\r\nRemoving the second `EHLO` fixes the error."},"comment":{"url":"https://api.github.com/repos/hoaproject/Mail/issues/comments/112183848","html_url":"https://github.com/hoaproject/Mail/issues/21#issuecomment-112183848","issue_url":"https://api.github.com/repos/hoaproject/Mail/issues/21","id":112183848,"user":{"login":"mgee","id":8101,"avatar_url":"https://avatars.githubusercontent.com/u/8101?v=3","gravatar_id":"","url":"https://api.github.com/users/mgee","html_url":"https://github.com/mgee","followers_url":"https://api.github.com/users/mgee/followers","following_url":"https://api.github.com/users/mgee/following{/other_user}","gists_url":"https://api.github.com/users/mgee/gists{/gist_id}","starred_url":"https://api.github.com/users/mgee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgee/subscriptions","organizations_url":"https://api.github.com/users/mgee/orgs","repos_url":"https://api.github.com/users/mgee/repos","events_url":"https://api.github.com/users/mgee/events{/privacy}","received_events_url":"https://api.github.com/users/mgee/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T19:41:01Z","updated_at":"2015-06-15T19:41:01Z","body":"Changing the read to `$client->read(4096);` has no effect. I suspect it is more of a timing issue rather than the length of the read buffer."}}