Reputation: 2021
I'm trying to use Amazon's SES and the Django-ses app to send emails. It works locally but fails on the server, returning the SESAddressNotVerifiedError.
Inspecting the trace revealed that it's failing because the from_email var is set to webmaster@localhost. I've looked all over to find where I set this variable to my verified email address in AWS-SES.
Does anyone know how I am supposed to change the from_email var from webmaster@localhost to [email protected]?
Thanks,
Anthony
Upvotes: 3
Views: 1178
Reputation: 2021
So it turns out that what I needed to change was this setting:
DEFAULT_FROM_EMAIL = 'My Domain < [email protected] >'
For everyone who is using Django-Registrations this is the default, but the reference to it is in registration/models.py, line 264 (the last line) if you want to change it, which I might unless it breaks, in which case, I'll report back.
Django default_from_email name
Thanks to Ashok for this solution
Upvotes: 5