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
-------

ee752f90ed [Mailer] added the reply-to addresses to the API SES transport request.
This commit is contained in:
Fabien Potencier 2020-06-10 03:24:15 +02:00
commit f88570af2f
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;
}