[Mailer] added the reply-to addresses to the API SES transport request.

The transport was not sending the reply-to addresses to the SES API.
This commit is contained in:
Paulo Ribeiro 2020-06-08 20:42:00 -03:00 committed by Fabien Potencier
parent 4d6a02a0e1
commit ee752f90ed
1 changed files with 3 additions and 0 deletions

View File

@ -113,6 +113,9 @@ class SesApiTransport extends AbstractApiTransport
if ($email->getHtmlBody()) {
$payload['Message.Body.Html.Data'] = $email->getHtmlBody();
}
if ($email->getReplyTo()) {
$payload['ReplyToAddresses.member'] = $this->stringifyAddresses($email->getReplyTo());
}
return $payload;
}