Alerts Constants

Description

When set, these optional constants will override settings for the Alerts feature.

Placement

Constants should be set in wp-config.php.

Since

This constant was added in Gravity SMTP version 1.6.0

Constants

GRAVITYSMTP_NOTIFY_WHEN_EMAIL_SENDS_ENABLED

Enables send an alert when an email send attempt fails for any reason.

define( 'GRAVITYSMTP_NOTIFY_WHEN_EMAIL_SENDS_ENABLED', false );

GRAVITYSMTP_ALERT_THRESHOLD_COUNT

Set the number of failures to trigger an alert.

define( 'GRAVITYSMTP_ALERT_THRESHOLD_COUNT', 5 );

GRAVITYSMTP_ALERT_THRESHOLD_INTERVAL

Set intervals for sending alerts about failures (in minutes).

define( 'GRAVITYSMTP_ALERT_THRESHOLD_INTERVAL', 5 );

GRAVITYSMTP_SLACK_ALERTS_ENABLED

Enable Slack alerts.

define( 'GRAVITYSMTP_SLACK_ALERTS_ENABLED', false );

GRAVITYSMTP_TWILIO_ALERTS_ENABLED

Enable Twilio alerts.

define( 'GRAVITYSMTP_TWILIO_ALERTS_ENABLED', false );