• Resolved brightgirl

    (@brightgirl)


    I’m using Other SMTP. I set everything up including putting the password in the wp-config file. The test email from WP Mail SMTP sends successfully. Test emails from within MemberPress also send successfully.

    However, the transaction-related emails (i.e. not tests) in MemberPress generate authentication errors in WP Mail SMTP. It can’t be a password issue because the WP Mail SMTP test email gives success, but I double/triple checked the password just to be sure. Finally, I remove the password from wp-config and just pasted it straight into WP Mail SMTP. Since doing that, all emails (tests and real) send as expected.

    I am wondering what would cause this behavior. Perhaps there is something on the host server that needs to be adjusted? I would prefer to keep the password in wp-config if possible, but if emails don’t send when the password is store there than that’s not an option.

    TIA for any ideas on this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support David

    (@dpinson)

    Hi there @brightgirl,

    That is very odd indeed. We’re looking into why this may be happening and I’ll get back to you once I have more information.

    In the meantime, have you noticed if any other plugins are behaving the same way as MemberPress? By that, I mean when the password is in wp-config, the emails fail authentication. This may help us determine why this isn’t happening across the board.

    If you can let us know about anything else you’ve noticed that fails to send, that should help us get this sorted out. ??

    Thanks!

    Plugin Support Dake

    (@dakeg)

    Hi @brightgirl,

    I’m Dake, I’ll be stepping in for David while he’s out today.

    We’ve tried to replicate the issue, but were unable to.

    We’ve installed MemberPress Pro 1.9.39, set the SMTP password via constant, and registered new members to get MemberPress emails.

    That setup works smoothly for us.

    What MemberPress version are you currently using and what WPMS constants have you set?

    Also, as a test, could you also fill in the password in the WP Mail SMTP settings, then set the same password via constant and try to replicate the issue.

    Thread Starter brightgirl

    (@brightgirl)

    Hey guys, thanks for the replies. We are using MemberPress Basic 1.9.39. For constants, we just had define( ‘WPMS_ON’, true ); and then define( ‘WPMS_SMTP_PASS’, ‘password’ ); (obv with the actual password in there).

    I can research this more as far as how other plugins behave and your suggestion to put the password in both places, but I am going to need to clone a staging site to do that because I don’t want to cause any disruptions on the live site now that the MemberPress membership has been launched (and it is sending the email as long as I have the pw in WPMS settings rather than in the config).

    Plugin Support Dake

    (@dakeg)

    Hi @brightgirl,

    Thank you for getting back to us and we understand.

    Please keep us posted on any new findings you come across while testing your staging website.

    Thread Starter brightgirl

    (@brightgirl)

    Hi,

    I got it working! In years past it had always worked with just:
    define( ‘WPMS_ON’, true );
    define( ‘WPMS_SMTP_PASS’, ‘password’ );

    But when I visited this page on your site:
    https://wpmailsmtp.com/docs/how-to-secure-smtp-settings-by-using-constants/

    I noticed that it says that to use define( ‘WPMS_SMTP_PASS’, ‘password’ ); you also have to set:
    define( ‘WPMS_SMTP_AUTH’, true );

    Once I added that line, now the emails send just find having everything in the config file. I think the need for that additional line must have been added at some point in the past (between when I set up WP SMTP Mail on this site many years ago and now).

    Glad to have it working!

    Karen

    Plugin Support Dake

    (@dakeg)

    Hi @brightgirl,

    Thank you for keeping us posted and we’re really happy to hear that you were able to resolve the issue after inserting the “define( ‘WPMS_SMTP_AUTH’, true );” line.

    Feel free to reach out to us if you ever run into any issues in the future ??

    Just to confirm, may I go ahead and mark this thread as resolved?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Trouble sending when password is store in wp-config’ is closed to new replies.