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

smtp connection errors/fail with gmail and outlook

$
0
0

Replies: 0

many users are having this problem

I have found a solution that required some of my own coding

I have tried this plugin and many others, and they all fail when making the smtp connection to gmail or outlook, with both ssl and tsl connections

As of PHP 5.6 you will get a warning/error if the SSL certificate on the server is not properly configured.

Gmail and Outlook use self signed certs so when php checks against the local certificate authority bundle, the connection will fail

so in this case, the connection must be made bypassing the cert verification

Connection: opening to smtp.gmail.com:587, timeout=300, options=array ( ‘ssl’ => array ( ‘verify_peer’ => false, ‘verify_peer_name’ => false, ‘allow_self_signed’ => true, ),)

this allows the smtp connection to gmail

please add this option to your plugin, to avoid these common cert check errors. Many users are reporting this issue


Viewing all articles
Browse latest Browse all 5161

Trending Articles



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