Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9e12a6d

Browse files
committed
[Mailer][MailchimpBridge] Fix incorrect sender address when sender has name
This fixes the same problem as 6dbac13 but for HTTP transport.
1 parent 3a51e01 commit 9e12a6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mailer/Bridge/Mailchimp/Http/MandrillTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected function doSend(SentMessage $message): void
4242
'json' => [
4343
'key' => $this->key,
4444
'to' => $this->stringifyAddresses($envelope->getRecipients()),
45-
'from_email' => $envelope->getSender()->toString(),
45+
'from_email' => $envelope->getSender()->getAddress(),
4646
'raw_message' => $message->toString(),
4747
],
4848
]);

0 commit comments

Comments
 (0)