summaryrefslogtreecommitdiff
path: root/Postman/Postman.php
diff options
context:
space:
mode:
Diffstat (limited to 'Postman/Postman.php')
-rw-r--r--Postman/Postman.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Postman/Postman.php b/Postman/Postman.php
index 2956d44..c3b0177 100644
--- a/Postman/Postman.php
+++ b/Postman/Postman.php
@@ -97,8 +97,9 @@ class Postman {
$this->logger->trace( 'SMTP Mailer: ' . PostmanOptions::getInstance()->getSmtpMailer() );
+ $mailer = PostmanOptions::getInstance()->getSmtpMailer();
if ( PostmanOptions::getInstance()->getTransportType() == 'smtp' &&
- PostmanOptions::getInstance()->getSmtpMailer() !== 'phpmailer') {
+ $mailer && $mailer !== 'phpmailer') {
// bind to wp_mail - this has to happen before the "init" action
// this design allows other plugins to register a Postman transport and call bind()