• Resolved aryanduntley

    (@dunar21)


    I’ve set up your plugin with OtherSMTP. This one is for a godaddy account. My poor clients chose godaddy, that’s why they can’t have anything nice. Like SSl encryption. So, trying all sorts of things and different hosts to try and get ssl to work with godaddy emails and all fail, I chose to use TLS on port 80. That works for the test emails. They send fine. But any emails sent with wp_mail fail. Error code is “Could not authenticate”… I am tracking the email results on my own. Any idea why the tests continue to work but all emails sent with wp_mail fail with authentication errors? The headers sent by the test are this:
    X-Mailer-Type:WPMailSMTP/Admin/Test

    I am defining my own headers with some CC’s, but even if I pass an empty array to the headers param, wp_mail fails. I assume you are hooking into wp_mail?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter aryanduntley

    (@dunar21)

    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!

    Thread Starter aryanduntley

    (@dunar21)

    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 5 years, 5 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.

    Thread Starter aryanduntley

    (@dunar21)

    Ok, that’s fine. I haven’t had time to revisit this and debug further. I’ve been busy working on projects.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Test Working, but wp_mail not’ is closed to new replies.