php - PHPMailer using gmail -


i'm trying send emails using phpmailer , gmail. worked fine on php 5.5 when updated php 5.6 error (tls on port 587): stream_socket_enable_crypto(): ssl operation failed code 1. openssl error messages: error:14090086:ssl routines:ssl3_get_server_certificate:certificate verify failed

if try using ssl on port 465 instead: 2015-05-29 15:11:58 smtp error: failed connect server: (0) 2015-05-29 15:11:58 smtp connect() failed. https://github.com/phpmailer/phpmailer/wiki/troubleshooting

i googled around , thing found out should set oauth2 don't know how. googled around , found this: https://github.com/phpmailer/phpmailer/wiki/using-gmail-with-xoauth2

i followed , got stuck when said should update get_auth_token.php. can't find file anywhere. how installed phpmailer using composer: "phpmailer/phpmailer": "~5.2"

do know how working or without oauth2? i'm using php 5.6.8

thanks in advance, busarna4

php 5.6 introduces ssl certificate verification, if config broken, fail ssl3_get_server_certificate:certificate verify failed error. should fix ssl, can revert old behavior overriding php mailer , passing these options smtpconnect function way.

$options = array(     'ssl' => array(         'verify_peer' => false,         'verify_peer_name' => false,         'allow_self_signed' => true     ) ); 

@courtesy synchro


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -