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 5161

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

$
0
0

The function works only if I add "verify_peer_name", too.

add_filter('wp_mail_smtp_custom_options','my_wp_mail_smtp_custom_options');

function my_wp_mail_smtp_custom_options($phpmailer) {
	$phpmailer->SMTPOptions = [
		'ssl' => [
			'verify_peer' => false,
			'verify_peer_name' => false
		]
	];
	return $phpmailer;
}

Thanks!


Viewing all articles
Browse latest Browse all 5161

Trending Articles



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