I removed the wp_config WPMS_SMTP_PASS constant and just saved the pass plaintext. This worked. You might have to debug something there.
Hi @dunar21,
I apologize for the delayed response and any inconvenience caused by this. When you get a chance, could you please share more details on your multisite environment and the constants used? Are you sending emails from the main site or the subsites? If you define the details in wp-config, then the same settings will be applied across subsites.
Thanks!
Not multisite. Just single install wordpress. The wp-config definitions were accessed when running tests, but when attempting to send emails live, something was wrong and I continued to get authentication errors. When I commented out the wp-config definitions, and placed the password into settings manually, plain text, the test and live emails worked.
define(‘WPMS_ON’, true);
define(‘WPMS_SMTP_PASS’, ‘THEPASSWORDGOESHERE’);
this above worked fine when running the test from your admin area. But failed authentication when attempting to send emails live via wp_mail().
SSL was not working for me (not just with your plugin. Friggin worthless godaddy. I couldn’t get SSL to work in any way, not even attempting to connect via linux command line). So, I used TLS on port 80. It’s the only thing that worked for me. Works fine with plaintext password in your setting page. But with the constants in wp-config, it is only working with your plugin when running tests.
-
This reply was modified 2 years, 9 months ago by
aryanduntley.
Hi @dunar21,
Thanks for the details! If the test emails are successfully while setting constants, and it displays authentication error while using wp_mail() to send emails, it might be because the constants are yet not defined when you send the emails. When you get a chance, could you please check if constants are being defined before you send the email or share more details on when (which hook) are you sending emails with wp_mail()?
Thanks!
Hi @dunar21 – We haven’t heard from you in about a week, so I’m going to go ahead and mark this ticket resolved. If you still have questions, though, please feel welcome to continue the conversation.
Ok, that’s fine. I haven’t had time to revisit this and debug further. I’ve been busy working on projects.