Other interesting facts:
1. We host the the web server on a Windows server
2. The SMTP is an external one
3. We created a test .Net console app and deployed it to the same web server. It sends emails with no problems using the same parameters
To conclude:
– PowerShell script and a Console .Net app work fine and can send emails
– None of the plugins, nor the native WordPress emailing can not send mails (authentication failed)
Not sure if it matters but we also use wordfence as a part of the web site.
Hi Dake,
I tried using Easy WP SMTP and the same problem occurred.
However, if I exclude authentication from settings on the WP Mail SMTP page, than it works.
A question:
The access to the SMTP server is limited so it ONLY accepts traffic from the web server address 62.162.94.138 on port 5588. That is why the PowerShell script works fine when executed directly on the web server machine..
Is it possible that the plugin when installed under WordPress may use a different IP address or port?