diff options
author | Yehuda Hassine <yehuda@myinbox.in> | 2019-05-01 00:25:40 +0300 |
---|---|---|
committer | Yehuda Hassine <yehuda@myinbox.in> | 2019-05-01 00:25:40 +0300 |
commit | 34356f6d27e564c0d0b687e6cb384e31219222b0 (patch) | |
tree | 31cc7bd49e881cc037eca7e2b877e9e9d3a4689f /Postman/PostmanOptions.php | |
parent | ee4e4461dc0c1ffffc00fbde9698dd379153aa8f (diff) | |
download | Post-SMTP-34356f6d27e564c0d0b687e6cb384e31219222b0.zip |
smtp mailer + bugs
Diffstat (limited to 'Postman/PostmanOptions.php')
-rw-r--r-- | Postman/PostmanOptions.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Postman/PostmanOptions.php b/Postman/PostmanOptions.php index 3beae34..7d8c2a0 100644 --- a/Postman/PostmanOptions.php +++ b/Postman/PostmanOptions.php @@ -138,6 +138,11 @@ if ( ! class_exists( 'PostmanOptions' ) ) { const DEFAULT_PLUGIN_MESSAGE_SENDER_EMAIL_ENFORCED = false; const DEFAULT_TEMP_DIRECTORY = '/tmp'; + const SMTP_MAILERS = [ + 'phpmailer' => 'PHPMailer', + 'postsmtp' => 'PostSMTP' + ]; + public $is_fallback = false; // options data @@ -569,6 +574,15 @@ if ( ! class_exists( 'PostmanOptions' ) ) { $this->setSenderName( $senderName ); } } + + public function getSmtpMailer() { + if ( empty($this->options [ 'smtp_mailers' ]) ) { + return 'postsmtp'; + } + + return $this->options [ 'smtp_mailers' ]; + } + public function isAuthTypePassword() { return $this->isAuthTypeLogin() || $this->isAuthTypeCrammd5() || $this->isAuthTypePlain(); } |