Skip to content

Commit 6e7dc48

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 ------- ee752f90ed [Mailer] added the reply-to addresses to the API SES transport request.
2 parents c943ea4 + d56618c commit 6e7dc48

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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
}

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)