Does not send using wp_mail function and Office365
-
Hi, love the plugin…thanks for your work on it!
After upgrading to your latest version, using the ‘wp_mail’ function in my code, my emails were no longer sending through the SMTP server at Outlook365. *BUT* when I used the test feature in your plugin, it worked fine! I was confused, to say the least ??
After I spent a couple hours debugging this, I discovered that until I set the “Sender” field for the PHPmailer envelope data, either in your plugin or in the wp_mail function itself, my emails were being rejected by the Office Server.
Once I added in the following line (at line 153) into easy-wp-smtp.php now it works fine:
$phpmailer->Sender = $phpmailer->From;
Here is a Screenshot of my code
Can you please review, and add this into your next plugin update?
If your repo was on Github I would submit a pull request, but I don’t do SVN unfortunately.
Hope this helps!
Best,
Terran
- The topic ‘Does not send using wp_mail function and Office365’ is closed to new replies.