PHP Mail Constants

When set, these optional constants will override settings for the PHP Mail integration in Gravity SMTP. Default values are shown.

Placement

Constants should be set in wp-config.php.

Since

This constant was added in Gravity SMTP version 1.1.0

Constants

GRAVITYSMTP_PHPMAIL_USE_RETURN_PATH

Determines whether or not to use the return path for all outgoing messages sent via PHP Mail.

define( 'GRAVITYSMTP_PHPMAIL_USE_RETURN_PATH', false ); // accepts (true, false)

GRAVITYSMTP_PHPMAIL_FROM_EMAIL

Determines the from: email address for all outgoing messages sent via PHP Mail.

define( 'GRAVITYSMTP_PHPMAIL_FROM_EMAIL', '' ); // accepts (an email address)

GRAVITYSMTP_PHPMAIL_FORCE_FROM_EMAIL

Determines whether or not to force the from: email address for all outgoing messages sent via PHP Mail.

define( 'GRAVITYSMTP_PHPMAIL_FORCE_FROM_EMAIL', false ); // accepts (true, false)

GRAVITYSMTP_PHPMAIL_FROM_NAME

Determines the from: name for all outgoing messages sent via PHP Mail.

define( 'GRAVITYSMTP_PHPMAIL_FROM_NAME', '' ); // accepts (a string used as the from name)

GRAVITYSMTP_PHPMAIL_FORCE_FROM_NAME

Determines whether or not to force the from: name for all outgoing messages sent via PHP Mail.

define( 'GRAVITYSMTP_PHPMAIL_FORCE_FROM_NAME', false ); // accepts (true, false)

GRAVITYSMTP_PHPMAIL_ENABLED

Determines whether PHP Mail is enabled.

define( 'GRAVITYSMTP_PHPMAIL_ENABLED', false ); // accepts (true, false)