{"action":"closed","issue":{"url":"https://api.github.com/repos/vapor/engine/issues/138","repository_url":"https://api.github.com/repos/vapor/engine","labels_url":"https://api.github.com/repos/vapor/engine/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/vapor/engine/issues/138/comments","events_url":"https://api.github.com/repos/vapor/engine/issues/138/events","html_url":"https://github.com/vapor/engine/issues/138","id":233201346,"number":138,"title":"[SMTP.SMTPClientError: invalidGreeting(code: -1, greeting: \"\")]","user":{"login":"leonidas-o","id":2997492,"avatar_url":"https://avatars1.githubusercontent.com/u/2997492?v=4","gravatar_id":"","url":"https://api.github.com/users/leonidas-o","html_url":"https://github.com/leonidas-o","followers_url":"https://api.github.com/users/leonidas-o/followers","following_url":"https://api.github.com/users/leonidas-o/following{/other_user}","gists_url":"https://api.github.com/users/leonidas-o/gists{/gist_id}","starred_url":"https://api.github.com/users/leonidas-o/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonidas-o/subscriptions","organizations_url":"https://api.github.com/users/leonidas-o/orgs","repos_url":"https://api.github.com/users/leonidas-o/repos","events_url":"https://api.github.com/users/leonidas-o/events{/privacy}","received_events_url":"https://api.github.com/users/leonidas-o/received_events","type":"User","site_admin":false},"labels":[{"id":404072435,"url":"https://api.github.com/repos/vapor/engine/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"tanner0101","id":1342803,"avatar_url":"https://avatars2.githubusercontent.com/u/1342803?v=4","gravatar_id":"","url":"https://api.github.com/users/tanner0101","html_url":"https://github.com/tanner0101","followers_url":"https://api.github.com/users/tanner0101/followers","following_url":"https://api.github.com/users/tanner0101/following{/other_user}","gists_url":"https://api.github.com/users/tanner0101/gists{/gist_id}","starred_url":"https://api.github.com/users/tanner0101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanner0101/subscriptions","organizations_url":"https://api.github.com/users/tanner0101/orgs","repos_url":"https://api.github.com/users/tanner0101/repos","events_url":"https://api.github.com/users/tanner0101/events{/privacy}","received_events_url":"https://api.github.com/users/tanner0101/received_events","type":"User","site_admin":false},"assignees":[{"login":"tanner0101","id":1342803,"avatar_url":"https://avatars2.githubusercontent.com/u/1342803?v=4","gravatar_id":"","url":"https://api.github.com/users/tanner0101","html_url":"https://github.com/tanner0101","followers_url":"https://api.github.com/users/tanner0101/followers","following_url":"https://api.github.com/users/tanner0101/following{/other_user}","gists_url":"https://api.github.com/users/tanner0101/gists{/gist_id}","starred_url":"https://api.github.com/users/tanner0101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanner0101/subscriptions","organizations_url":"https://api.github.com/users/tanner0101/orgs","repos_url":"https://api.github.com/users/tanner0101/repos","events_url":"https://api.github.com/users/tanner0101/events{/privacy}","received_events_url":"https://api.github.com/users/tanner0101/received_events","type":"User","site_admin":false},{"login":"LoganWright","id":5750489,"avatar_url":"https://avatars0.githubusercontent.com/u/5750489?v=4","gravatar_id":"","url":"https://api.github.com/users/LoganWright","html_url":"https://github.com/LoganWright","followers_url":"https://api.github.com/users/LoganWright/followers","following_url":"https://api.github.com/users/LoganWright/following{/other_user}","gists_url":"https://api.github.com/users/LoganWright/gists{/gist_id}","starred_url":"https://api.github.com/users/LoganWright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoganWright/subscriptions","organizations_url":"https://api.github.com/users/LoganWright/orgs","repos_url":"https://api.github.com/users/LoganWright/repos","events_url":"https://api.github.com/users/LoganWright/events{/privacy}","received_events_url":"https://api.github.com/users/LoganWright/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/vapor/engine/milestones/29","html_url":"https://github.com/vapor/engine/milestone/29","labels_url":"https://api.github.com/repos/vapor/engine/milestones/29/labels","id":2992122,"number":29,"title":"2.2.3","description":null,"creator":{"login":"tanner0101","id":1342803,"avatar_url":"https://avatars2.githubusercontent.com/u/1342803?v=4","gravatar_id":"","url":"https://api.github.com/users/tanner0101","html_url":"https://github.com/tanner0101","followers_url":"https://api.github.com/users/tanner0101/followers","following_url":"https://api.github.com/users/tanner0101/following{/other_user}","gists_url":"https://api.github.com/users/tanner0101/gists{/gist_id}","starred_url":"https://api.github.com/users/tanner0101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanner0101/subscriptions","organizations_url":"https://api.github.com/users/tanner0101/orgs","repos_url":"https://api.github.com/users/tanner0101/repos","events_url":"https://api.github.com/users/tanner0101/events{/privacy}","received_events_url":"https://api.github.com/users/tanner0101/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2017-12-21T01:08:38Z","updated_at":"2018-02-13T00:57:32Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2017-06-02T14:30:56Z","updated_at":"2018-02-13T00:57:32Z","closed_at":"2018-02-13T00:57:32Z","author_association":"NONE","body":"# Bugs\r\n\r\n## Introduction\r\n\r\nin V1 it was working with:\r\n\r\n```swift\r\nlet client = try SMTPClient<TCPClientStream>.init(host: host, port: port, securityLayer: SecurityLayer.tls(nil))\r\ntry client.send(email, using: credentials)\r\n```\r\n\r\nIn V2 I'm trying to send a Mail over SMTP using smpt.zoho.com.\r\n\r\nGot the credentials and client conf in a smtpzoho.json file:\r\n```json\r\n{\r\n        \"client\": {\r\n        \"scheme\": \"smtps\",\r\n        \"host\": \"smtp.zoho.eu\",\r\n        \"port\": 465\r\n}\r\n```\r\n\r\n## Code\r\n\r\n```swift\r\n        let credentials = SMTPCredentials(user: user, pass: pass)\r\n        let from = EmailAddress(name: name, address: emailAddress)\r\n        let to = EmailAddress(name: name, address: emailAddress)\r\n        let emailBody = EmailBody(content: \"\\(nameRequest) - \\(emailRequest) : \\(messageRequest)\")\r\n        \r\n        let email = Email(from: from,\r\n                          to: to,\r\n                          subject: \"Contact form \\(name)\",\r\n                          body: emailBody)\r\n        \r\n        \r\n        let portConverted = Port(port)\r\n                \r\n        let mailer = SMTPMailer.init(scheme: scheme, hostname: host, port: portConverted, credentials: credentials)\r\n        try mailer.send(email)\r\n```\r\n\r\nMostly the last two lines have changed, and now a scheme has to be provided. I've tried with several schemes like \"ssl\", \"smtps\", ssmtp\", \"http\", \"https\" but all give me the same error:\r\n```sh\r\n[SMTP.SMTPClientError: invalidGreeting(code: -1, greeting: \"\")]\r\nConform 'SMTP.SMTPClientError' to Debugging.Debuggable to provide more debug information.\r\n```\r\n"}}
{"actor":{"display_login":"tanner0101"}}