Skip to content

Commit 98aeb78

Browse files
committed
[Mailer][MailchimpBridge] Fix incorrect sender address when sender has name
This fixes the same problem as symfony/symfony@6dbac13 but for HTTP transport.
1 parent e3865b7 commit 98aeb78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)