• Resolved Dan Greene

    (@dgreene423)


    I want to use WP SMTP mail on multisite. I found I page from 2015 that gives settings that you can put in wp-config.php.

    Is this still accurate?

    define('WPMS_ON', true);
    define('WPMS_MAIL_FROM', '[email protected]');
    define('WPMS_MAIL_FROM_NAME', 'My WordPress Multisite');
    define('WPMS_MAILER', 'smtp'); // Possible values 'smtp', 'mail', or 'sendmail' 
    define('WPMS_SET_RETURN_PATH', 'false'); // Sets $phpmailer->Sender if true
    define('WPMS_SMTP_HOST', 'smtp.gmail.com'); // The SMTP mail host
    define('WPMS_SMTP_PORT', 587); // The SMTP server port number
    define('WPMS_SSL', 'tls'); // Possible values '', 'ssl', 'tls' - note TLS is not STARTTLS
    define('WPMS_SMTP_AUTH', true); // True turns on SMTP authentication, false turns it off
    define('WPMS_SMTP_USER', '[email protected]'); // SMTP authentication username, only used if WPMS_SMTP_AUTH is true
    define('WPMS_SMTP_PASS', 'ThePasswordGenius'); // SMTP authentication password, only used if WPMS_SMTP_AUTH is true

    Is there official documentation somewhere that details these constants and their options? Can individual sites in the network override these constants?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Slava Abakumov

    (@slaffik)

    Hi

    Please open the file wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php – at the top of the file there will be the list of all constants that you can use, with descriptions.

    Thread Starter Dan Greene

    (@dgreene423)

    Found it, thanks.

    But doesn’t using the constants in wp-config force those constants on all sites on wordpress multisite?

    Hi redhat39 — You’re correct. If you define these details in wp-config, then you’re defining them for all of your subsites. This is intended for users who need to use some/all same settings across subsites.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP SMTP Mail Settings for Multisite in wp-config’ is closed to new replies.