[Mailer] added ReplyTo option for PostmarkApiTransport
This commit is contained in:
parent
b43f25555f
commit
d49a7387de
@ -4,6 +4,7 @@ CHANGELOG
|
||||
4.4.0
|
||||
-----
|
||||
|
||||
* added `ReplyTo` option
|
||||
* [BC BREAK] Renamed and moved `Symfony\Component\Mailer\Bridge\Postmark\Http\Api\PostmarkTransport`
|
||||
to `Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkApiTransport`, `Symfony\Component\Mailer\Bridge\Postmark\Smtp\PostmarkTransport`
|
||||
to `Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkSmtpTransport`.
|
||||
|
@ -67,13 +67,14 @@ class PostmarkApiTransport extends AbstractApiTransport
|
||||
'To' => implode(',', $this->stringifyAddresses($this->getRecipients($email, $envelope))),
|
||||
'Cc' => implode(',', $this->stringifyAddresses($email->getCc())),
|
||||
'Bcc' => implode(',', $this->stringifyAddresses($email->getBcc())),
|
||||
'ReplyTo' => implode(',', $this->stringifyAddresses($email->getReplyTo())),
|
||||
'Subject' => $email->getSubject(),
|
||||
'TextBody' => $email->getTextBody(),
|
||||
'HtmlBody' => $email->getHtmlBody(),
|
||||
'Attachments' => $this->getAttachments($email),
|
||||
];
|
||||
|
||||
$headersToBypass = ['from', 'to', 'cc', 'bcc', 'subject', 'content-type', 'sender'];
|
||||
$headersToBypass = ['from', 'to', 'cc', 'bcc', 'subject', 'content-type', 'sender', 'reply-to'];
|
||||
foreach ($email->getHeaders()->all() as $name => $header) {
|
||||
if (\in_array($name, $headersToBypass, true)) {
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user