From f1134501a5af6839c295f520e78613e1f0769f13 Mon Sep 17 00:00:00 2001 From: mark burdett Date: Fri, 8 Jun 2018 16:49:03 -0700 Subject: [PATCH] the SMTP response code could be empty string --- CRM/Mailing/BAO/MailingJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Mailing/BAO/MailingJob.php b/CRM/Mailing/BAO/MailingJob.php index a63dabbac9..cbf5661db5 100644 --- a/CRM/Mailing/BAO/MailingJob.php +++ b/CRM/Mailing/BAO/MailingJob.php @@ -804,7 +804,7 @@ VALUES (%1, %2, %3, %4, %5, %6, %7) } // Register 5xx SMTP response code (permanent failure) as bounce. - if ($code{0} === '5') { + if (isset($code{0}) && $code{0} === '5') { return FALSE; } -- 2.25.1