{"action":"closed","issue":{"url":"https://api.github.com/repos/jstedfast/MailKit/issues/339","repository_url":"https://api.github.com/repos/jstedfast/MailKit","labels_url":"https://api.github.com/repos/jstedfast/MailKit/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/jstedfast/MailKit/issues/339/comments","events_url":"https://api.github.com/repos/jstedfast/MailKit/issues/339/events","html_url":"https://github.com/jstedfast/MailKit/issues/339","id":154864609,"number":339,"title":"error on handshake with smtp.live.com","user":{"login":"SHAliakbari","id":7825385,"avatar_url":"https://avatars.githubusercontent.com/u/7825385?v=3","gravatar_id":"","url":"https://api.github.com/users/SHAliakbari","html_url":"https://github.com/SHAliakbari","followers_url":"https://api.github.com/users/SHAliakbari/followers","following_url":"https://api.github.com/users/SHAliakbari/following{/other_user}","gists_url":"https://api.github.com/users/SHAliakbari/gists{/gist_id}","starred_url":"https://api.github.com/users/SHAliakbari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SHAliakbari/subscriptions","organizations_url":"https://api.github.com/users/SHAliakbari/orgs","repos_url":"https://api.github.com/users/SHAliakbari/repos","events_url":"https://api.github.com/users/SHAliakbari/events{/privacy}","received_events_url":"https://api.github.com/users/SHAliakbari/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jstedfast/MailKit/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-14T17:02:44Z","updated_at":"2016-05-15T14:03:51Z","closed_at":"2016-05-15T14:03:51Z","body":"Hi , \r\nthere is problem on connect to smtp.live.com on dnxcore5 .\r\n\r\nmy code is : \r\n\r\n\r\n```\r\nusing (var client = new SmtpClient())\r\n                {\r\n                    client.Connect(\"smtp.live.com\", 587, true);\r\n\r\n                    client.AuthenticationMechanisms.Remove(\"XOAUTH2\");\r\n\r\n                    // Note: only needed if the SMTP server requires authentication\r\n                    client.Authenticate(\"xxxx\", \"xxxx\");\r\n\r\n                    await client.SendAsync(message);\r\n                    client.Disconnect(true);\r\n                }\r\n```\r\n\r\nthe error is :\r\n\r\n> The handshake failed due to an unexpected packet format."}}