Introduction
Gravity SMTP allows developers to configure and manage integrations using constants, maintaining consistent settings across environments, including WordPress Multi-Site.
This article covers the necessary constants for enabling integrations using constants.
Required Constants
To configure an integration using constants, you need to define the following constants in your wp-config.php
file:
define( 'GRAVITYSMTP_INTEGRATIONSLUG_ACTIVE', true );
define( 'GRAVITYSMTP_INTEGRATIONSLUG_CONFIGURED', true );
define( 'GRAVITYSMTP_INTEGRATIONSLUG_ENABLED', true );
Note: Besides the above constants, certain integrations require additional constants for API keys, secrets, or other configuration values. Be sure to define these as needed for the specific integration.
Examples
If you are configuring the SendGrid integration, replace INTEGRATIONSLUG
with sendgrid
:
define( 'GRAVITYSMTP_SENDGRID_ACTIVE', true );
define( 'GRAVITYSMTP_SENDGRID_CONFIGURED', true );
define( 'GRAVITYSMTP_SENDGRID_ENABLED', true );