thewca / worldcubeassociation.org

All of the code that runs on worldcubeassociation.org
https://www.worldcubeassociation.org/
GNU General Public License v3.0
324 stars 175 forks source link

Fix SES error preventing email to >50 recipients #9467

Open dunkOnIT opened 3 months ago

dunkOnIT commented 3 months ago

The following error was triggered when results for FMC 2024 were submitted - a competition with >50 delegates. Net::SMTPFatalError (554 Transaction failed: Recipient count exceeds 50.

The following fixes should be implemented:

gregorbg commented 3 months ago

As per https://docs.aws.amazon.com/ses/latest/dg/quotas.html, adding more than 50 recipients is really not an option for AWS. We should probably implement a hard validation for this edge case in our own WCA code.

FinnIckler commented 3 months ago

It also says that the best solution is just to send individual emails.

"Defining multiple recipients in a message destination can lead to poor observability as well as poor deliverability and should not be used unless your use case specifically requires it."

But they probably also have some bias i.e costs :P