open-duelyst / duelyst

Duelyst is a digital collectible card game and turn-based strategy hybrid, developed by Counterplay Games.
Creative Commons Zero v1.0 Universal
3.64k stars 560 forks source link

[SERVER] Re-enable outgoing emails with AWS SES #111

Closed willroberts closed 2 years ago

willroberts commented 2 years ago

Summary

Duelyst previously used Mandrill to send outgoing emails: https://github.com/open-duelyst/duelyst/blob/main/server/mailer.coffee#L29L34

This has since been disabled, but we should re-enable this by using AWS SES: https://aws.amazon.com/ses/

This service is free for the first 2,000 emails sent per month, and $0.10 per 1,000 emails beyond that.

Emails were previously sent for the following purposes:

Of these, the first priority is email verification + password resets. User reports can be considered later, and error emails are not needed (since we route error logs to CloudWatch now).

willroberts commented 2 years ago

https://docs.aws.amazon.com/ses/latest/dg/request-production-access.html

willroberts commented 2 years ago

Since leaving the SES sandbox requires a privacy policy and more legal compliance, let's instead remove email functionality. Will create a new issue for this.