diff options
author | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2019-02-17 22:08:17 +0000 |
---|---|---|
committer | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2019-02-17 22:08:17 +0000 |
commit | 1d2f9717ac60dd25d97894391d6e5f14d0c9c13d (patch) | |
tree | 8eedfa9ba5d195ad9b7644907d76580cb6570c01 /Postman | |
parent | f627e0d82c18a1ed60eead38ce38746ded43adc6 (diff) | |
download | Post-SMTP-1d2f9717ac60dd25d97894391d6e5f14d0c9c13d.zip |
Prevent dropping mismatch send address on fallback
Diffstat (limited to 'Postman')
-rw-r--r-- | Postman/PostmanOptions.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Postman/PostmanOptions.php b/Postman/PostmanOptions.php index 971cdd2..8825681 100644 --- a/Postman/PostmanOptions.php +++ b/Postman/PostmanOptions.php @@ -534,6 +534,11 @@ if ( ! class_exists( 'PostmanOptions' ) ) { return $this->isPluginSenderEmailEnforced(); } public function isPluginSenderEmailEnforced() { + + if ( $this->is_fallback ) { + return true; + } + if ( $this->isNew() ) { return self::DEFAULT_PLUGIN_MESSAGE_SENDER_EMAIL_ENFORCED; } if ( isset( $this->options [ PostmanOptions::PREVENT_MESSAGE_SENDER_EMAIL_OVERRIDE ] ) ) { |