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
[Mailer] BCC doesn't work with AWS SES #36333
Comments
The same problem also occurs with SendmailTransport. The cause can be found here: https://github.com/symfony/mime/blob/2aad3728327b3b1fd8137004528129673dec1e09/Message.php#L96 |
The commentary really makes it look like it's a voluntary omission. Is there any other way to add BCCs ? The issue made me double my API calls (not a big deal in my case but still) |
Hello, same problem here. |
The problem is with // remove the Bcc field which should NOT be part of the sent message
$headers->remove('Bcc'); This should be changed to use |
Same issue here, all Bcc's are removed and not send. Any status update? |
I'm not using AWS SES, so someone needs to investigate this issue and submit a patch to fix it. I will then more than happy to review it and merge it. |
Did some more digging. The But when using If we look at the swiftmail implementation you see @fabpot would that also be a proper solution for |
SES issue will be fixed by #39743 You can use |
Regarding the sendmail issue, could somebody test this PR #39744 ? /cc @frans-beech-it |
This PR was merged into the 4.4 branch. Discussion ---------- [Mailer] Fix missing BCC recipients in SES bridge | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #36333 | License | MIT | Doc PR | - When using the `ses` (alias of `ses+https`) scheme, the bridge send the RawEmail to AWS. But RawEmails does not contains the BCC recipients. This PR adds the envelope's recipients to the list of Destinations in Amazon SES payload. Commits ------- 1cfc763 Fix missing BCC recipients in SES bridge
@nicolas-grekas @jderusse should we create a new issue for the sendmail transport issue? |
Symfony version(s) affected: 4.4.7
Description
I was able to send emails to the to() address, but bcc() seems ignored.
Using templated emails.
The URL I use for the DSN is one of type:
MAILER_DSN=ses://ACCESS_KEY:SECRET_KEY@default?region=eu-west-1
How to reproduce
Nothing more than that. Upon debugging, it seems that when the message is converted to raw the bcc is not present in the headers.
The text was updated successfully, but these errors were encountered: