Wordpress后台装了个easy smtp 插件, 连接到一个基于Iredmail的邮件服务器,如果wp基于Php5.5及以下版本,没有问题.
如果WP基于php5.6(含)及以上那么smtp插件就提示无法连接到邮件服务器,提示错误: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
看了下phpmailer的github,提示可能和下面有关系: ( 所有其它可能的phpmailer我已经按照https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting 确认无误了)
In a change from earlier versions, PHP 5.6 verifies certificates on SSL connections. If the SSL config of the server you are connecting to is not correct, you will get an error like this:Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL.routines:SSL3_GET_SERVER_CERTIFICATE:certificate
请问官方php5.6以上和以下的Php.ini中有什么差异? 如何解决上面这个问题,毕竟Php7.1的效率比php5.5高多了,不想回到过去版本的php,谢谢.
|