summaryrefslogtreecommitdiff
path: root/Postman/PostmanOptions.php
diff options
context:
space:
mode:
Diffstat (limited to 'Postman/PostmanOptions.php')
-rw-r--r--Postman/PostmanOptions.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/Postman/PostmanOptions.php b/Postman/PostmanOptions.php
index 240b1aa..9c244bd 100644
--- a/Postman/PostmanOptions.php
+++ b/Postman/PostmanOptions.php
@@ -87,6 +87,7 @@ if ( ! class_exists( 'PostmanOptions' ) ) {
const SENDGRID_API_KEY = 'sendgrid_api_key';
const MAILGUN_API_KEY = 'mailgun_api_key';
const MAILGUN_DOMAIN_NAME = 'mailgun_domain_name';
+ const MAILGUN_REGION = 'mailgun_region';
const PREVENT_MESSAGE_SENDER_NAME_OVERRIDE = 'prevent_sender_name_override';
const PREVENT_MESSAGE_SENDER_EMAIL_OVERRIDE = 'prevent_sender_email_override';
const CONNECTION_TIMEOUT = 'connection_timeout';
@@ -317,6 +318,12 @@ if ( ! class_exists( 'PostmanOptions' ) ) {
}
}
+ public function getMailgunRegion() {
+ if ( isset( $this->options [ PostmanOptions::MAILGUN_REGION ] ) ) {
+ return $this->options [ PostmanOptions::MAILGUN_REGION ];
+ }
+ }
+
public function getPushoverUser() {
if ( isset( $this->options [ PostmanOptions::PUSHOVER_USER ] ) ) {
return base64_decode( $this->options [ PostmanOptions::PUSHOVER_USER ] );