{"id":2283,"date":"2024-12-19T18:28:08","date_gmt":"2024-12-19T23:28:08","guid":{"rendered":"https:\/\/docs.gravitysmtp.com\/?p=2283"},"modified":"2024-12-19T18:28:10","modified_gmt":"2024-12-19T23:28:10","slug":"alerts-constants","status":"publish","type":"post","link":"https:\/\/docs.gravitysmtp.com\/alerts-constants\/","title":{"rendered":"Alerts Constants"},"content":{"rendered":"\n<pre class=\"wp-block-rocketgenius-editor-comments\"><span class=\"dashicons dashicons-admin-comments\"><\/span><b>Dario N:<\/b>&nbsp;https:\/\/github.com\/gravityforms\/support-backlog\/issues\/630<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-description\">Description<\/h2>\n\n\n\n<p>When set, these optional <a href=\"https:\/\/www.php.net\/manual\/en\/language.constants.php\">constants<\/a> will override settings for the <a href=\"https:\/\/docs.gravitysmtp.com\/alerts\/\">Alerts<\/a> feature.<\/p>\n\n\n\r\n<h2 id=\"h-placement\" class=\"wp-block-heading\">Placement<\/h2>\r\n\r\n\r\n\r\n<p>Constants should be set in <code><a href=\"https:\/\/developer.wordpress.org\/apis\/wp-config-php\/\">wp-config.php<\/a><\/code>.<\/p>\r\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-since\">Since<\/h2>\n\n\n\n<p>This constant was added in Gravity SMTP version 1.6.0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-constants\">Constants<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-gravitysmtp-notify-when-email-sends-enabled\">GRAVITYSMTP_NOTIFY_WHEN_EMAIL_SENDS_ENABLED<\/h3>\n\n\n\n<p>Enables send an alert when an email send attempt fails for any reason.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\ndefine( &#039;GRAVITYSMTP_NOTIFY_WHEN_EMAIL_SENDS_ENABLED&#039;, false );\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-gravitysmtp-alert-threshold-count\">GRAVITYSMTP_ALERT_THRESHOLD_COUNT<\/h3>\n\n\n\n<p>Set the number of failures to trigger an alert.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\ndefine( &#039;GRAVITYSMTP_ALERT_THRESHOLD_COUNT&#039;, 5 );\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-gravitysmtp-alert-threshold-interval\">GRAVITYSMTP_ALERT_THRESHOLD_INTERVAL<\/h3>\n\n\n\n<p>Set intervals for sending alerts about failures (in minutes).<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\ndefine( &#039;GRAVITYSMTP_ALERT_THRESHOLD_INTERVAL&#039;, 5 );\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-gravitysmtp-slack-alerts-enabled\">GRAVITYSMTP_SLACK_ALERTS_ENABLED<\/h3>\n\n\n\n<p>Enable Slack alerts.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\ndefine( &#039;GRAVITYSMTP_SLACK_ALERTS_ENABLED&#039;, false );\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-gravitysmtp-twilio-alerts-enabled\">GRAVITYSMTP_TWILIO_ALERTS_ENABLED<\/h3>\n\n\n\n<p>Enable Twilio alerts.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\ndefine( &#039;GRAVITYSMTP_TWILIO_ALERTS_ENABLED&#039;, false );\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>When set, these optional constants will override settings for the Alerts feature.<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_autodraft_ids":[],"_sb_is_suggestion_mode":false,"_sb_show_suggestion_boards":false,"_sb_show_comment_boards":false,"_sb_suggestion_history":"","_sb_update_block_changes":"","_is_real_time_mode":false,"_realtime_collaborators":"","footnotes":"","cf_checklist_status":[]},"categories":[13],"tags":[],"class_list":["post-2283","post","type-post","status-publish","format-standard","hentry","category-constants","wpautop"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.6.1 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Alerts Constants - Gravity SMTP Documentation<\/title>\n<meta name=\"description\" content=\"When set, these optional constants will override settings for the Alerts feature.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.gravitysmtp.com\/alerts-constants\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Alerts Constants\" \/>\n<meta property=\"og:description\" content=\"When set, these optional constants will override settings for the Alerts feature.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.gravitysmtp.com\/alerts-constants\/\" \/>\n<meta property=\"og:site_name\" content=\"Gravity SMTP Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-19T23:28:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-19T23:28:10+00:00\" \/>\n<meta name=\"author\" content=\"Dario N\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dario N\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/docs.gravitysmtp.com\\\/alerts-constants\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/docs.gravitysmtp.com\\\/alerts-constants\\\/\"},\"author\":{\"name\":\"Dario N\",\"@id\":\"https:\\\/\\\/docs.gravitysmtp.com\\\/#\\\/schema\\\/person\\\/dda70b11383b5d9524fbeaf4b7d0b80a\"},\"headline\":\"Alerts Constants\",\"datePublished\":\"2024-12-19T23:28:08+00:00\",\"dateModified\":\"2024-12-19T23:28:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/docs.gravitysmtp.com\\\/alerts-constants\\\/\"},\"wordCount\":84,\"articleSection\":[\"Constants\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/docs.gravitysmtp.com\\\/alerts-constants\\\/\",\"url\":\"https:\\\/\\\/docs.gravitysmtp.com\\\/alerts-constants\\\/\",\"name\":\"Alerts Constants - Gravity SMTP Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/docs.gravitysmtp.com\\\/#website\"},\"datePublished\":\"2024-12-19T23:28:08+00:00\",\"dateModified\":\"2024-12-19T23:28:10+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/docs.gravitysmtp.com\\\/#\\\/schema\\\/person\\\/dda70b11383b5d9524fbeaf4b7d0b80a\"},\"description\":\"When set, these optional constants will override settings for the Alerts feature.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/docs.gravitysmtp.com\\\/alerts-constants\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/docs.gravitysmtp.com\\\/alerts-constants\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/docs.gravitysmtp.com\\\/alerts-constants\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/docs.gravitysmtp.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Alerts Constants\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/docs.gravitysmtp.com\\\/#website\",\"url\":\"https:\\\/\\\/docs.gravitysmtp.com\\\/\",\"name\":\"Gravity SMTP Documentation\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/docs.gravitysmtp.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/docs.gravitysmtp.com\\\/#\\\/schema\\\/person\\\/dda70b11383b5d9524fbeaf4b7d0b80a\",\"name\":\"Dario N\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b04dae864801947724ed88af0a96d38fc6068202143a3524df343d2858de9023?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b04dae864801947724ed88af0a96d38fc6068202143a3524df343d2858de9023?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b04dae864801947724ed88af0a96d38fc6068202143a3524df343d2858de9023?s=96&d=mm&r=g\",\"caption\":\"Dario N\"},\"url\":\"https:\\\/\\\/docs.gravitysmtp.com\\\/author\\\/dario\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Alerts Constants - Gravity SMTP Documentation","description":"When set, these optional constants will override settings for the Alerts feature.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.gravitysmtp.com\/alerts-constants\/","og_locale":"en_US","og_type":"article","og_title":"Alerts Constants","og_description":"When set, these optional constants will override settings for the Alerts feature.","og_url":"https:\/\/docs.gravitysmtp.com\/alerts-constants\/","og_site_name":"Gravity SMTP Documentation","article_published_time":"2024-12-19T23:28:08+00:00","article_modified_time":"2024-12-19T23:28:10+00:00","author":"Dario N","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Dario N","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/docs.gravitysmtp.com\/alerts-constants\/#article","isPartOf":{"@id":"https:\/\/docs.gravitysmtp.com\/alerts-constants\/"},"author":{"name":"Dario N","@id":"https:\/\/docs.gravitysmtp.com\/#\/schema\/person\/dda70b11383b5d9524fbeaf4b7d0b80a"},"headline":"Alerts Constants","datePublished":"2024-12-19T23:28:08+00:00","dateModified":"2024-12-19T23:28:10+00:00","mainEntityOfPage":{"@id":"https:\/\/docs.gravitysmtp.com\/alerts-constants\/"},"wordCount":84,"articleSection":["Constants"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/docs.gravitysmtp.com\/alerts-constants\/","url":"https:\/\/docs.gravitysmtp.com\/alerts-constants\/","name":"Alerts Constants - Gravity SMTP Documentation","isPartOf":{"@id":"https:\/\/docs.gravitysmtp.com\/#website"},"datePublished":"2024-12-19T23:28:08+00:00","dateModified":"2024-12-19T23:28:10+00:00","author":{"@id":"https:\/\/docs.gravitysmtp.com\/#\/schema\/person\/dda70b11383b5d9524fbeaf4b7d0b80a"},"description":"When set, these optional constants will override settings for the Alerts feature.","breadcrumb":{"@id":"https:\/\/docs.gravitysmtp.com\/alerts-constants\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.gravitysmtp.com\/alerts-constants\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.gravitysmtp.com\/alerts-constants\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.gravitysmtp.com\/"},{"@type":"ListItem","position":2,"name":"Alerts Constants"}]},{"@type":"WebSite","@id":"https:\/\/docs.gravitysmtp.com\/#website","url":"https:\/\/docs.gravitysmtp.com\/","name":"Gravity SMTP Documentation","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.gravitysmtp.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/docs.gravitysmtp.com\/#\/schema\/person\/dda70b11383b5d9524fbeaf4b7d0b80a","name":"Dario N","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b04dae864801947724ed88af0a96d38fc6068202143a3524df343d2858de9023?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b04dae864801947724ed88af0a96d38fc6068202143a3524df343d2858de9023?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b04dae864801947724ed88af0a96d38fc6068202143a3524df343d2858de9023?s=96&d=mm&r=g","caption":"Dario N"},"url":"https:\/\/docs.gravitysmtp.com\/author\/dario\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/docs.gravitysmtp.com\/wp-json\/wp\/v2\/posts\/2283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.gravitysmtp.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.gravitysmtp.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.gravitysmtp.com\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.gravitysmtp.com\/wp-json\/wp\/v2\/comments?post=2283"}],"version-history":[{"count":3,"href":"https:\/\/docs.gravitysmtp.com\/wp-json\/wp\/v2\/posts\/2283\/revisions"}],"predecessor-version":[{"id":2291,"href":"https:\/\/docs.gravitysmtp.com\/wp-json\/wp\/v2\/posts\/2283\/revisions\/2291"}],"wp:attachment":[{"href":"https:\/\/docs.gravitysmtp.com\/wp-json\/wp\/v2\/media?parent=2283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.gravitysmtp.com\/wp-json\/wp\/v2\/categories?post=2283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.gravitysmtp.com\/wp-json\/wp\/v2\/tags?post=2283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}