summaryrefslogtreecommitdiff
path: root/Postman/PostmanOptions.php
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2017-12-12 22:00:06 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2017-12-12 22:00:06 +0000
commit97a47666f6bf86c7cb9387eec51dae5bc2486010 (patch)
tree40db7ffcd0dab2fdaa6420955c7738ba72079665 /Postman/PostmanOptions.php
parentd53ff2324d38c6fbdc0669324c3e3fa3ae6c4ca8 (diff)
downloadPost-SMTP-97a47666f6bf86c7cb9387eec51dae5bc2486010.zip
* MAILGUN IS ABOUT TO RELEASE
* Email log - trash all * Email log - records per page * Welcome page * Fix config screen tabs
Diffstat (limited to 'Postman/PostmanOptions.php')
-rw-r--r--Postman/PostmanOptions.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/Postman/PostmanOptions.php b/Postman/PostmanOptions.php
index ca16789..8b318ef 100644
--- a/Postman/PostmanOptions.php
+++ b/Postman/PostmanOptions.php
@@ -85,6 +85,8 @@ if ( ! class_exists( 'PostmanOptions' ) ) {
const BASIC_AUTH_PASSWORD = 'basic_auth_password';
const MANDRILL_API_KEY = 'mandrill_api_key';
const SENDGRID_API_KEY = 'sendgrid_api_key';
+ const MAILGUN_API_KEY = 'mailgun_api_key';
+ const MAILGUN_DOMAIN_NAME = 'mailgun_domain_name';
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';
@@ -262,6 +264,15 @@ if ( ! class_exists( 'PostmanOptions' ) ) {
if ( isset( $this->options [ PostmanOptions::SENDGRID_API_KEY ] ) ) {
return base64_decode( $this->options [ PostmanOptions::SENDGRID_API_KEY ] ); }
}
+ public function getMailgunApiKey() {
+ if ( isset( $this->options [ PostmanOptions::MAILGUN_API_KEY ] ) ) {
+ return base64_decode( $this->options [ PostmanOptions::MAILGUN_API_KEY ] ); }
+ }
+ public function getMailgunDomainName() {
+ if ( isset( $this->options [ PostmanOptions::MAILGUN_DOMAIN_NAME ] ) ) {
+ return $this->options [ PostmanOptions::MAILGUN_DOMAIN_NAME ];
+ }
+ }
public function getReplyTo() {
if ( isset( $this->options [ PostmanOptions::REPLY_TO ] ) ) {
return $this->options [ PostmanOptions::REPLY_TO ]; }