Custom SMTP Constants

Description

When set, these optional constants will override settings for the Custom SMTP 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_GENERIC_ENCRYPTION_TYPE

Sets encryption method used to secure the connection.

define( 'GRAVITYSMTP_GENERIC_ENCRYPTION_TYPE', 'tls' ); // accepts (tls, ssl, none)

GRAVITYSMTP_GENERIC_HOST

Indicates the address of your mail server.

define( 'GRAVITYSMTP_GENERIC_HOST', '' );

GRAVITYSMTP_GENERIC_PORT

Indicates the port of your SMTP connection.

define( 'GRAVITYSMTP_GENERIC_PORT', '' );

GRAVITYSMTP_GENERIC_AUTH

Indicates whether or not your SMTP server requires a username and password to confirm the identity of the user sending messages.

define( 'GRAVITYSMTP_GENERIC_AUTH', true );

GRAVITYSMTP_GENERIC_AUTO_TLS

Indicates whether or not TLS encryption should be used for the connection.

define( 'GRAVITYSMTP_GENERIC_AUTH_TLS', true );

GRAVITYSMTP_GENERIC_USERNAME

Indicate the username used for logging into your mail server.

define( 'GRAVITYSMTP_GENERIC_USERNAME', '' );

GRAVITYSMTP_GENERIC_PASSWORD

Indicate the password used for logging into your mail server.

define( 'GRAVITYSMTP_GENERIC_PASSWORD', '' );

GRAVITYSMTP_GENERIC_FROM_EMAIL

Set the from: address associated with outgoing messages sent via Custom SMTP.

define( 'GRAVITYSMTP_GENERIC_FROM_EMAIL', '' );

GRAVITYSMTP_GENERIC_FORCE_FROM_EMAIL

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

define( 'GRAVITYSMTP_GENERIC_FORCE_FROM_EMAIL', false );

GRAVITYSMTP_GENERIC_FROM_NAME

Set the from: name associated with outgoing messages sent via Custom SMTP..

define( 'GRAVITYSMTP_GENERIC_FROM_NAME', '' );

GRAVITYSMTP_GENERIC_FORCE_FROM_NAME

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

define( 'GRAVITYSMTP_GENERIC_FROM_NAME', false );

GRAVITYSMTP_GENERIC_ENABLED

Sets whether or not the integration is enabled.

define( 'GRAVITYSMTP_GENERIC_ENABLED', false );