Microsoft Constants

Description

When set, these optional constants will override settings for the Microsoft 365 / Outlook 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_MICROSOFT_CLIENT_ID

Set the client ID provided by Microsoft Azure for oAuth authentication.

define( 'GRAVITYSMTP_MICROSOFT_CLIENT_ID', '' );

GRAVITYSMTP_MICROSOFT_CLIENT_SECRET

Set the client ID provided by Microsoft Azure for oAuth authentication.

define( 'GRAVITYSMTP_MICROSOFT_CLIENT_SECRET', '' );

GRAVITYSMTP_MICROSOFT_FROM_EMAIL

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

define( 'GRAVITYSMTP_MICROSOFT_FROM_EMAIL', '' );

GRAVITYSMTP_MICROSOFT_FORCE_FROM_EMAIL

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

define( 'GRAVITYSMTP_MICROSOFT_FORCE_FROM_EMAIL', false );

GRAVITYSMTP_MICROSOFT_FROM_NAME

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

define( 'GRAVITYSMTP_MICROSOFT_FROM_NAME', '' );

GRAVITYSMTP_MICROSOFT_FORCE_FROM_NAME

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

define( 'GRAVITYSMTP_MICROSOFT_FROM_NAME', false );

GRAVITYSMTP_MICROSOFT_ENABLED

Sets whether or not the Microsoft integration is enabled.

define( 'GRAVITYSMTP_MICROSOFT_ENABLED', false );