From 03ff848f162f30aa8e0a473eb6c3f118d37214cb Mon Sep 17 00:00:00 2001 From: Denis Kochnov Date: Wed, 29 Mar 2017 15:53:04 +0300 Subject: [PATCH] Refs #10652: Aschroder_SMTPPro_Model_Email_Queue - fix queue send method to continue sending and mark mail as processed if non protocol error occurs Aschroder SMTPPro - fix admin module configuration file to allow multi store configuration --- .../Aschroder/SMTPPro/Model/Email/Queue.php | 10 ++++- .../local/Aschroder/SMTPPro/etc/system.xml | 42 +++++++++---------- 2 files changed, 30 insertions(+), 22 deletions(-) diff --git a/app/code/local/Aschroder/SMTPPro/Model/Email/Queue.php b/app/code/local/Aschroder/SMTPPro/Model/Email/Queue.php index 8a2fe7b..f3bfd27 100644 --- a/app/code/local/Aschroder/SMTPPro/Model/Email/Queue.php +++ b/app/code/local/Aschroder/SMTPPro/Model/Email/Queue.php @@ -126,7 +126,15 @@ public function send() Mage::logException($e); Mage::setIsDeveloperMode($oldDevMode); - return false; + // 553 - Requested action not taken: mailbox name not allowed + if ($e instanceof Zend_Mail_Protocol_Exception && $e->getCode() != 553) { + return false; + } + + $message->setProcessedAt(Varien_Date::formatDate(true)); + $message->save(); + + continue; } // after each valid message has been sent - pause if required diff --git a/app/code/local/Aschroder/SMTPPro/etc/system.xml b/app/code/local/Aschroder/SMTPPro/etc/system.xml index d81e468..25283b0 100644 --- a/app/code/local/Aschroder/SMTPPro/etc/system.xml +++ b/app/code/local/Aschroder/SMTPPro/etc/system.xml @@ -5,8 +5,8 @@ 600 1 - 0 - 0 + 1 + 1 @@ -17,8 +17,8 @@ text 110 1 - 0 - 0 + 1 + 1 @@ -26,7 +26,7 @@ 10 1 1 - 0 + 1 SMTP Pro Email Extension Configure your SMTP connection below. If you have any questions or would like any help please visit magesmtppro.com.]]> @@ -47,7 +47,7 @@ 20 1 1 - 0 + 1 @@ -58,7 +58,7 @@ 23 1 1 - 0 + 1 @@ -68,7 +68,7 @@ 20 1 1 - 0 + 1 @@ -79,7 +79,7 @@ 23 1 1 - 0 + 1 @@ -89,7 +89,7 @@ 20 1 1 - 0 + 1 @@ -100,7 +100,7 @@ 23 1 1 - 0 + 1 @@ -112,7 +112,7 @@ 20 1 1 - 0 + 1 @@ -123,7 +123,7 @@ 23 1 1 - 0 + 1 @@ -134,7 +134,7 @@ 20 1 1 - 0 + 1 @@ -143,7 +143,7 @@ 23 1 1 - 0 + 1 login,plain,crammd5 @@ -153,7 +153,7 @@ 26 1 1 - 0 + 1 login,plain,crammd5 @@ -162,7 +162,7 @@ 29 1 1 - 0 + 1 @@ -171,7 +171,7 @@ 32 1 1 - 0 + 1 @@ -182,7 +182,7 @@ 35 1 1 - 0 + 1