[Mailer][MailchimpBridge] Fix incorrect sender address when sender has name

This fixes the same problem as https://github.com/symfony/symfony/commit/6dbac13a07c23f321b04489b6a9773 but for HTTP transport.
This commit is contained in:
Vilius Grigaliūnas 2020-01-02 17:01:57 +02:00
parent 3a51e0143a
commit 9e12a6dcda

View File

@ -42,7 +42,7 @@ class MandrillTransport extends AbstractHttpTransport
'json' => [
'key' => $this->key,
'to' => $this->stringifyAddresses($envelope->getRecipients()),
'from_email' => $envelope->getSender()->toString(),
'from_email' => $envelope->getSender()->getAddress(),
'raw_message' => $message->toString(),
],
]);