{"action":"created","issue":{"url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/766","repository_url":"https://api.github.com/repos/PHPMailer/PHPMailer","labels_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/766/labels{/name}","comments_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/766/comments","events_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/766/events","html_url":"https://github.com/PHPMailer/PHPMailer/issues/766","id":164576428,"number":766,"title":"verify_peer_name must be set to false when using smtp.gmail.com","user":{"login":"gbittmann","id":15743636,"avatar_url":"https://avatars.githubusercontent.com/u/15743636?v=3","gravatar_id":"","url":"https://api.github.com/users/gbittmann","html_url":"https://github.com/gbittmann","followers_url":"https://api.github.com/users/gbittmann/followers","following_url":"https://api.github.com/users/gbittmann/following{/other_user}","gists_url":"https://api.github.com/users/gbittmann/gists{/gist_id}","starred_url":"https://api.github.com/users/gbittmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbittmann/subscriptions","organizations_url":"https://api.github.com/users/gbittmann/orgs","repos_url":"https://api.github.com/users/gbittmann/repos","events_url":"https://api.github.com/users/gbittmann/events{/privacy}","received_events_url":"https://api.github.com/users/gbittmann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-08T17:18:41Z","updated_at":"2016-07-08T17:36:48Z","closed_at":"2016-07-08T17:36:48Z","body":"The subject pretty much covers the issue. It should be included in the documentation of how to connect to gmail shouldn't it?\r\n\r\nAlso the error shows under 'SMTP connect() failed', so perhaps it should be listed there on the wiki for others who experience it?"},"comment":{"url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/comments/231423372","html_url":"https://github.com/PHPMailer/PHPMailer/issues/766#issuecomment-231423372","issue_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/766","id":231423372,"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":"2016-07-08T17:36:48Z","updated_at":"2016-07-08T17:36:48Z","body":"This is simply untrue. If you connect to a gmail server, you get a matching certificate - they're not that stupid. It's very common for ISPs to transparently redirect SMTP, so it looks like you're connecting to gmail but certificate verification fails - **which is the whole point of checking the certificate!** Proof:\r\n\r\n```\r\nopenssl s_client -connect smtp.gmail.com:587 -starttls smtp\r\nCONNECTED(00000003)\r\ndepth=2 /C=US/O=GeoTrust Inc./CN=GeoTrust Global CA\r\nverify error:num=20:unable to get local issuer certificate\r\nverify return:0\r\n---\r\nCertificate chain\r\n 0 s:/C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.gmail.com\r\n   i:/C=US/O=Google Inc/CN=Google Internet Authority G2\r\n 1 s:/C=US/O=Google Inc/CN=Google Internet Authority G2\r\n   i:/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA\r\n 2 s:/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA\r\n   i:/C=US/O=Equifax/OU=Equifax Secure Certificate Authority\r\n---\r\nServer certificate\r\n-----BEGIN CERTIFICATE-----\r\nMIIEgDCCA2igAwIBAgIIfMman9+czWkwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UE\r\nBhMCVVMxEzARBgNVBAoTCkdvb2dsZSBJbmMxJTAjBgNVBAMTHEdvb2dsZSBJbnRl\r\ncm5ldCBBdXRob3JpdHkgRzIwHhcNMTYwNjMwMTQ1ODM5Whc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OCAQEAZWAOHh4qrhVxHqfZ\r\nkZGrVKOksEZcjqB1sS1R3vue7L9BcReufk/SsdQHn+Uo3UKgC0BJpiP0cZ+Du4ni\r\nT4vUFdylXdz+N8eHCOx9lct2rcg2cEZI9nVCiQxKjXDF0eHguOrSOMt5v7cnKFei\r\nC8fM2kfpmXSNyWpj/P38AOtjskBHBwfzdNEnro9xODMRNnp66bnGWXnOlAgi3vup\r\nuTzYMTID/qE+uBKuXEvX050AqMM/DcB1DKUy97iJe8MjyHwrELJbBkIqP5gkNQsY\r\njOJ6ZzgW2aeCVCCoBw/EfpDYXCL6oKnn/2NJalWAfwCL7hO+DVsCKoXRBJA+eTob\r\nUmrB4g==\r\n-----END CERTIFICATE-----\r\nsubject=/C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.gmail.com\r\nissuer=/C=US/O=Google Inc/CN=Google Internet Authority G2\r\n---\r\nNo client certificate CA names sent\r\n---\r\nSSL handshake has read 3493 bytes and written 491 bytes\r\n---\r\nNew, TLSv1/SSLv3, Cipher is AES128-SHA\r\nServer public key is 2048 bit\r\nSecure Renegotiation IS supported\r\nCompression: NONE\r\nExpansion: NONE\r\nSSL-Session:\r\n    Protocol  : TLSv1\r\n    Cipher    : AES128-SHA\r\n    Session-ID: 4B395264BC9F7CF69333008646746B28FF5692EB7947AEE9F205F25C3B9802A1\r\n    Session-ID-ctx:\r\n    Master-Key: 62A47AB8CF02E5890274ED6BC9B0BD6DC9A8233A759F1B1E24C8FB417458914959C8BF1ED09D018E68C548B8C47E33AA\r\n    Key-Arg   : None\r\n    Start Time: 1467999218\r\n    Timeout   : 300 (sec)\r\n    Verify return code: 0 (ok)\r\n---\r\n250 SMTPUTF8\r\n```\r\n\r\nThis is already covered in the troubleshooting guide."}}
{"actor":{"display_login":"Synchro"}}