-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Mailer] [Amazon] Add support for custom headers in ses+api #58761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hey! I see that this is your first PR. That is great! Welcome! Symfony has a contribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
6f03c14
to
1f82051
Compare
src/Symfony/Component/Mailer/Bridge/Amazon/Transport/SesApiAsyncAwsTransport.php
Outdated
Show resolved
Hide resolved
1f82051
to
6038343
Compare
Thank you @StudioMaX. |
Updated the CHANGELOG to reflect the addition of custom headers support in the Amazon SES API mailer. This change will be available starting from version 7.3 instead of 7.2 as per symfony#58761.
As per symfony/symfony#58761, the warning about requiring the `ses+https` provider for custom headers is no longer relevant and has been removed. Fixes symfony#20512
…(Spomky) This PR was merged into the 7.3 branch. Discussion ---------- [Mailer] [Amazon] Support for custom headers in ses+api | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | | License | MIT Updated the CHANGELOG to reflect the addition of custom headers support in the Amazon SES API mailer. This change will be available starting from version 7.3 instead of 7.2 as per #58761. Commits ------- be5fb0d [Mailer] [Amazon] Support for custom headers in ses+api
This PR was merged into the 7.3 branch. Discussion ---------- [Mailer] [Amazon] Remove outdated warning As per symfony/symfony#58761, the warning about requiring the `ses+https` provider for custom headers is no longer relevant for 7.3 and has been removed. Fixes #20512 Commits ------- f0be895 [Mailer] [Amazon] Remove outdated warning
Until recently it was not possible to add custom headers when using AWS SES API with
Simple
mode, see #45168.This problem is also mentioned in Mailer's docs:
However, changes have been made to the SendEmail API and now this will be possible from approximately 2024/03/05.
References:
https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_SendEmail.html
https://awsapichanges.com/archive/changes/539fb6-email.html
In this change I add all custom headers to the request, excluding the standard ones, similar to other transports.
Example: