PHPMailer generates PHP Warning: stream_socket_enable_crypto(): Peer certificate did not match expected

后端 未结 4 964
南旧
南旧 2020-11-27 03:50

I am using PHPMailer on PHP 5.6, the increased security around certificated in PHP 5.6 is certainly fun.

I am trying to send a test message to a domain hosted on dre

4条回答
  •  甜味超标
    2020-11-27 04:42

    I had a similar problem after I've upgraded to PHP 5.6 on my WordPress machine. The WP Mail SMTP by WPForms (wp-mail-smtp) plugin were configured to use localhost as SMTP Host. I've changed it to the FQHN (Fully Qualified Host Name) as it is defined in the SSL cert. After this change it is working fine.

提交回复
热议问题