Birebir aynı phpmailer kodları bir sunucuda hata verirken, cPanel olan başka bir sunucuda aşağıdaki debug loglarını veriyor. Çözüm yolunu bilen varmı?
Teşekkürler.
2017-08-15 10:48:51 Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array ( ) 2017-08-15 10:48:51 Connection failed. Error #2: stream_socket_client(): Peer certificate CN=`tr8.megatrhost.com' did not match expected CN=`smtp.gmail.com' [/home/aswebtas/public_html/mailtest/class.smtp.php line 293] 2017-08-15 10:48:51 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [/home/aswebtas/public_html/mailtest/class.smtp.php line 293] 2017-08-15 10:48:51 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error) [/home/aswebtas/public_html/mailtest/class.smtp.php line 293] 2017-08-15 10:48:51 SMTP ERROR: Failed to connect to server: (0) 2017-08-15 10:48:51 SMTP connect() failed.
https://github.com/PHPMailer/PHPMail...roubleshooting Message could not be sent.Mailer Error: SMTP connect() failed.
https://github.com/PHPMailer/PHPMail...roubleshooting