“NOTE: To send from AWS EC2 instances, SNS must be used instead of SMTP. These and the SNS e-mail settings from
envfiles/aws.txt are mutually exclusive; do not use both.
See Sending email | Django documentation | Django”
However that page linked to above doesn’t appear to describe how to use SNS instead of SMTP.
Presumably I need to set EMAIL_BACKEND in smtp.txt?
But what is the backend name that I should use please?
I tried django_ses.SESBackend and django.core.mail.backends.django_ses.SESBackend but received e.g. “ModuleNotFoundError: No module named ‘django_ses’”.
Following that, are the SNS e-mail settings in aws.txt just the following?
I’m just bumping this up as I would really appreciate help in sorting this, thanks.
I now realise that the above mixes up SES with SNS, as I was also trying to see if SES worked, because Django per-se is supposed to work with AWS SES.
So, how do I refrain from using the SMTP settings from envfiles/smtp.txt, such that I am only using envfiles/aws.txt, and not both, as described in the documentation? Should aws.txt be blanked, like the following?:
The envfiles/aws.txt that comes with Kobotoolbox Server contains only the following:
But should I also add this?: