{"action":"created","issue":{"url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/387","labels_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/387/labels{/name}","comments_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/387/comments","events_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/387/events","html_url":"https://github.com/PHPMailer/PHPMailer/issues/387","id":64209560,"number":387,"title":"Enable TLS automatically if a server offers it","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-25T08:21:00Z","updated_at":"2015-04-27T14:47:35Z","closed_at":null,"body":"This was mentioned in #386, and just seems like a good idea. If we connect to a server (without using SSL) and it offers `STARTTLS` in its capability list, we should enable TLS by default, even if we have not specified `SMTPSecure = 'tls'`. I've got a working patch to do this and it works fine for me - I'm interested to hear what others think. Is it likely to run into a ton of SSL verification errors in PHP 5.6? Do we care?"},"comment":{"url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/comments/96682054","html_url":"https://github.com/PHPMailer/PHPMailer/issues/387#issuecomment-96682054","issue_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/387","id":96682054,"user":{"login":"jonataswalker","id":10571881,"avatar_url":"https://avatars.githubusercontent.com/u/10571881?v=3","gravatar_id":"","url":"https://api.github.com/users/jonataswalker","html_url":"https://github.com/jonataswalker","followers_url":"https://api.github.com/users/jonataswalker/followers","following_url":"https://api.github.com/users/jonataswalker/following{/other_user}","gists_url":"https://api.github.com/users/jonataswalker/gists{/gist_id}","starred_url":"https://api.github.com/users/jonataswalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonataswalker/subscriptions","organizations_url":"https://api.github.com/users/jonataswalker/orgs","repos_url":"https://api.github.com/users/jonataswalker/repos","events_url":"https://api.github.com/users/jonataswalker/events{/privacy}","received_events_url":"https://api.github.com/users/jonataswalker/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T14:47:35Z","updated_at":"2015-04-27T14:47:35Z","body":"I know this is a very repeated question but I've got RoundCube working with a self-signed ssl and php 5.6.8.\r\n\r\nI got this PHPMailer debug:\r\nConnection: opening to mail.mapeando.net:587, t=10, opt=array ()\r\nConnection: opened\r\nSERVER -> CLIENT: 220 mail.mapeando.net ESMTP Postfix\r\nCLIENT -> SERVER: EHLO mapeando.net\r\nSERVER -> CLIENT: 250-mail.mapeando.net250-PIPELINING250-SIZE 10240000250-VRFY250-ETRN250-STARTTLS250-ENHANCEDSTATUSCODES250-8BITMIME250 DSN\r\nCLIENT -> SERVER: STARTTLS\r\nSERVER -> CLIENT: 220 2.0.0 Ready to start TLS\r\nCLIENT -> SERVER: QUIT\r\n\r\nConnection: closed\r\nSMTP connect() failed.\r\nSMTP connect() failed.\r\n"}}