{"action":"created","issue":{"url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/517","labels_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/517/labels{/name}","comments_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/517/comments","events_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/517/events","html_url":"https://github.com/PHPMailer/PHPMailer/issues/517","id":109281143,"number":517,"title":"EHLO/HELO sent regardless of server's ready state","user":{"login":"f0o","id":1656377,"avatar_url":"https://avatars.githubusercontent.com/u/1656377?v=3","gravatar_id":"","url":"https://api.github.com/users/f0o","html_url":"https://github.com/f0o","followers_url":"https://api.github.com/users/f0o/followers","following_url":"https://api.github.com/users/f0o/following{/other_user}","gists_url":"https://api.github.com/users/f0o/gists{/gist_id}","starred_url":"https://api.github.com/users/f0o/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f0o/subscriptions","organizations_url":"https://api.github.com/users/f0o/orgs","repos_url":"https://api.github.com/users/f0o/repos","events_url":"https://api.github.com/users/f0o/events{/privacy}","received_events_url":"https://api.github.com/users/f0o/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-01T11:29:07Z","updated_at":"2015-11-19T18:25:02Z","closed_at":"2015-11-19T18:25:02Z","body":"Hi,\r\n\r\nWe use PHPMailer to transport our emails to external SMTPd's.\r\n\r\nSome SMTPds dont answer in time, so the `get_lines()` call after `connect()` returns empty. However PHPMailer sends his `EHLO/HELO` before the SMTPd asks for it resulting in mail rejection by RFC Standards.\r\n\r\nI.e. Exim4 reports `SMTP protocol synchronization error (input sent without waiting for greeting)` and closes the connection afterwards.\r\n\r\nWe use PHPMailer 5.2.7 but I checked the current upstream code in 5.2.13 and I couldnt find any wait code there either.\r\n\r\nCheers,\r\nf0o"},"comment":{"url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/comments/158146565","html_url":"https://github.com/PHPMailer/PHPMailer/issues/517#issuecomment-158146565","issue_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/517","id":158146565,"user":{"login":"Synchro","id":81561,"avatar_url":"https://avatars.githubusercontent.com/u/81561?v=3","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":"2015-11-19T18:25:02Z","updated_at":"2015-11-19T18:25:02Z","body":"The code definitely waits for input, with a long timeout. Given that it still breaks, it suggests that the server may be sending a blank line or something before it sends its greeting. I'll close this for now."}}