• Resolved Alwin

    (@wp-opti)


    I want to hide my SMTP password by adding this code to my wp-config file:

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

    I always thought that code like this should be added above the line:
    /* That’s all, stop editing! Happy publishing. */

    However, in the WP Mail SMTP settings page I see this:
    “To do this add the lines below to your wp-config.php file:”

    I assume you mean directly above the line
    /* That’s all, stop editing! Happy publishing. */

    and not completely at the bottom of the wp-config file,
    correct?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @wp-opti,

    Yes, the constants should be added above that line. By ‘add the lines below’, we mean the constants written below that phrase. I apologize for any confusion about this.

    Thanks!

    Thread Starter Alwin

    (@wp-opti)

    Thank you. The strange thing is however that when I had the code placed above that line, WP Mail SMTP was still sending emails.

    How is that possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘smtp code wp-config’ is closed to new replies.