summaryrefslogtreecommitdiff
path: root/Postman/PostmanOptions.php
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2018-08-07 21:16:19 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2018-08-07 21:16:19 +0000
commit5cb7d912a0b18a8d4b41153c75c8084ae35b84b6 (patch)
tree65dc7013b4e1c981e8e5620ae6093bc494d03b3d /Postman/PostmanOptions.php
parent9983c9755ee33e56a7f16ab3896eea3406e56619 (diff)
downloadPost-SMTP-5cb7d912a0b18a8d4b41153c75c8084ae35b84b6.zip
Support for Mailgun Europe Region
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 ] );