Quantcast
Channel: WordPress.org Forums » [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin] Support
Viewing all articles
Browse latest Browse all 4997

lotabi on "[Plugin: WP Mail SMTP] OpenSSL changes in PHP 5.6.x"

$
0
0

Plugin WP Mail SMTP stop works after a PHP Upgrade from PHP 5.4 to PHP 5.6 using an SMTP server that require:

* authentication
* Connection over STARTLS

This due OpenSSL changes [1].

As suggested on php.net site and other [2] I patch wp-includes/class-phpmailer.php

//public $SMTPOptions = array();

public $SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false
)
);

All seems works fine again. I suggest To author to add an option "verify_peer" true/false to plugin to override PHP 5.6 default.

HTH
Alessandro - lota

[1] http://php.net/manual/en/migration56.openssl.php
[2] https://evert.meulie.net/faqwd/unable-to-send-email-from-wordpress-via-smtp-php-5-6/

https://wordpress.org/plugins/wp-mail-smtp/


Viewing all articles
Browse latest Browse all 4997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>