• Unfortunately, I’ve been fighting with this trying to figure out what was wrong. I took the advice of another website for the constant to put in wp-config instead of your documentation and it finally worked.

    Theirs stated to use this:
    define( ‘WPMS_ON’, true );
    define( ‘WPMS_SMTP_PASS’, ‘your_password’ );

    While yours stated to use this (which didn’t grey out the password) on this page: https://wpmailsmtp.com/docs/how-to-secure-smtp-settings-by-using-constants/#other-smtp

    define( ‘WPMS_SMTP_AUTH’, true ); // True turns it on, false turns it off.
    define( ‘WPMS_SMTP_PASS’, ‘password’ ); // SMTP authentication password, only used if WPMS_SMTP_AUTH is true.

    Hopefully this helps someone else with the issue. Wasted too much time on this.

Viewing 1 replies (of 1 total)
  • Hi @iguanamom,

    Thanks for reaching out and I apologize for the confusion over this. This constant: define( ‘WPMS_ON’, true ); should be there with ‘true’ for any other constants to work. This is noted on the very first paragraph of that documentation.

    Basically, if you only need to define a password with constant, the following should work.

    define( ‘WPMS_ON’, true );
    define( ‘WPMS_SMTP_PASS’, ‘your_password’ );

    There are many other constants that can be used. So, the documentation is for all the constants you can use.

    I appreciate your feedback, though. It’s always helpful to get insights from our users.

    I hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Documentation Wrong for Setting Password in wp-config’ is closed to new replies.