{"action":"created","issue":{"url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/423","labels_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/423/labels{/name}","comments_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/423/comments","events_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/423/events","html_url":"https://github.com/PHPMailer/PHPMailer/issues/423","id":80488035,"number":423,"title":"SMTP Error: Could not connect to SMTP host. PHP 5.6.3","user":{"login":"djalmakaay","id":12594596,"avatar_url":"https://avatars.githubusercontent.com/u/12594596?v=3","gravatar_id":"","url":"https://api.github.com/users/djalmakaay","html_url":"https://github.com/djalmakaay","followers_url":"https://api.github.com/users/djalmakaay/followers","following_url":"https://api.github.com/users/djalmakaay/following{/other_user}","gists_url":"https://api.github.com/users/djalmakaay/gists{/gist_id}","starred_url":"https://api.github.com/users/djalmakaay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djalmakaay/subscriptions","organizations_url":"https://api.github.com/users/djalmakaay/orgs","repos_url":"https://api.github.com/users/djalmakaay/repos","events_url":"https://api.github.com/users/djalmakaay/events{/privacy}","received_events_url":"https://api.github.com/users/djalmakaay/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-25T10:32:27Z","updated_at":"2015-05-25T19:58:55Z","closed_at":"2015-05-25T15:04:20Z","body":"Hello, \r\nI'm trying to send mails from the local with gmail SMTP but it is impossible.\r\nI use XAMPP for mac, PHP 5.6.3, Apache 2.4.10, OpenSSL 1.0.1j (is enabled in php.ini) and CodeIgniter.\r\n\r\ni have this in the function\r\n\r\n            $mail = new PHPMailer();\r\n            $mail->IsSMTP(); // establecemos que utilizaremos SMTP\r\n            $mail->SMTPDebug = 4;\r\n            $mail->Debugoutput = 'html';\r\n            $mail->SMTPAuth   = true; // habilitamos la autenticación SMTP\r\n            $mail->SMTPSecure = \"tls\"; // establecemos el prefijo del protocolo seguro de comunicación con el servidor\r\n            $mail->Host       = \"smtp.gmail.com\";      // establecemos GMail como nuestro servidor SMTP\r\n            $mail->Port       = 587;                 // establecemos el puerto SMTP en el servidor de GMail\r\n            \r\n            $mail->Username   = \"servidorcorreoprueba@gmail.com\";  // la cuenta de correo GMail\r\n            $mail->Password   = \"*********\";            // password de la cuenta GMail\r\n\r\nAnd I have this error:\r\n\r\n      SERVER -> CLIENT: 220 2.0.0 Ready to start TLS\r\n      ----------------------------------------------------------------------------------\r\n      A PHP Error was encountered\r\n\r\n      Severity: Warning\r\n\r\n      Message: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed\r\n\r\n      Filename: PHPMailer/class.smtp.php\r\n\r\n      Line Number: 344\r\n      ---------------------------------------------------------------------------------\r\n      SMTP Error: Could not connect to SMTP host.\r\n\r\nI searched a lot but i can't find the solution anywhere.\r\nThanks.\r\n\r\n            \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/comments/105300679","html_url":"https://github.com/PHPMailer/PHPMailer/issues/423#issuecomment-105300679","issue_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/423","id":105300679,"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-05-25T19:58:55Z","updated_at":"2015-05-25T19:58:55Z","body":"OK, but do understand that this \"fix\" is to make your connection insecure."}}