{"action":"opened","issue":{"url":"https://api.github.com/repos/swiftmailer/swiftmailer/issues/1095","repository_url":"https://api.github.com/repos/swiftmailer/swiftmailer","labels_url":"https://api.github.com/repos/swiftmailer/swiftmailer/issues/1095/labels{/name}","comments_url":"https://api.github.com/repos/swiftmailer/swiftmailer/issues/1095/comments","events_url":"https://api.github.com/repos/swiftmailer/swiftmailer/issues/1095/events","html_url":"https://github.com/swiftmailer/swiftmailer/issues/1095","id":333938544,"node_id":"MDU6SXNzdWUzMzM5Mzg1NDQ=","number":1095,"title":"afterEhlo function doesn't throw correct message","user":{"login":"gitstashgithub","id":16966392,"node_id":"MDQ6VXNlcjE2OTY2Mzky","avatar_url":"https://avatars2.githubusercontent.com/u/16966392?v=4","gravatar_id":"","url":"https://api.github.com/users/gitstashgithub","html_url":"https://github.com/gitstashgithub","followers_url":"https://api.github.com/users/gitstashgithub/followers","following_url":"https://api.github.com/users/gitstashgithub/following{/other_user}","gists_url":"https://api.github.com/users/gitstashgithub/gists{/gist_id}","starred_url":"https://api.github.com/users/gitstashgithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitstashgithub/subscriptions","organizations_url":"https://api.github.com/users/gitstashgithub/orgs","repos_url":"https://api.github.com/users/gitstashgithub/repos","events_url":"https://api.github.com/users/gitstashgithub/events{/privacy}","received_events_url":"https://api.github.com/users/gitstashgithub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-20T06:21:07Z","updated_at":"2018-06-20T06:21:07Z","closed_at":null,"author_association":"NONE","body":"\r\n| Q                   | A\r\n| ------------------- | -----\r\n| Bug report?         | yes\r\n| Feature request?    | no\r\n| RFC?                | no\r\n| How used?           | Laravel5.5\r\n| Swiftmailer version | 6.0.2\r\n| PHP version         | 7.1.3\r\n\r\n### Observed behaviour\r\nIn `vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php` file `afterEhlo` function, if authentication fails it always throw error message 'Failed to authenticate on SMTP server with username $usename using $count possible authenticators'. The error message is caught in $authenticator->authenticate() function but never passes here. \r\n\r\nTherefore, no matter the error is caused by wrong password or is caused two step authentication is enabled, the error messages are the same.\r\n\r\n### Expected behaviour\r\n<!-- What should the code do? -->\r\n\r\n### Example\r\n<!-- Example to reproduce the issue. -->\r\n"}}
{"actor":{"display_login":"gitstashgithub"}}