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

Skip to content

Commit f88570a

Browse files
committed
bug #37162 [Mailer] added the reply-to addresses to the API SES transport request. (ribeiropaulor)
This PR was merged into the 4.4 branch. Discussion ---------- [Mailer] added the reply-to addresses to the API SES transport request. | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | License | MIT The transport was not sending the reply-to addresses to the SES API when using SendEmail API method. Commits ------- ee752f9 [Mailer] added the reply-to addresses to the API SES transport request.
2 parents 5b719d1 + ee752f9 commit f88570a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Component/Mailer/Bridge/Amazon/Transport/SesApiTransport.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ private function getPayload(Email $email, Envelope $envelope): array
113113
if ($email->getHtmlBody()) {
114114
$payload['Message.Body.Html.Data'] = $email->getHtmlBody();
115115
}
116+
if ($email->getReplyTo()) {
117+
$payload['ReplyToAddresses.member'] = $this->stringifyAddresses($email->getReplyTo());
118+
}
116119

117120
return $payload;
118121
}

0 commit comments

Comments
 (0)