From ec3b2be9ec5f3b1dae216a8b53a51c3b22dd4b5f Mon Sep 17 00:00:00 2001 From: Linkdup Date: Fri, 29 Jan 2021 13:38:37 +1000 Subject: [PATCH] Update MailgunSwiftTransport.php Removed the code that automatically assigns a name, as if this causes the next if statement to always succeed. It also incorrectly formats the to address string when sending to multiple emails --- src/MailgunSwiftTransport.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/MailgunSwiftTransport.php b/src/MailgunSwiftTransport.php index bb5c93e..7689a3a 100644 --- a/src/MailgunSwiftTransport.php +++ b/src/MailgunSwiftTransport.php @@ -364,9 +364,6 @@ public function buildMessage(Swift_Mime_Message $message) if ($primaryEmail === null) { $primaryEmail = $toEmail; } - if (!$toName) { - $toName = $toEmail; - } if ($toName) { $recipients[] = sprintf('%s <%s>', $toName, $toEmail); } else {