I want to use Amazon's Simple Email Service to send emails.
I verified my domain as well as the email address I want to send from. I'm not in sandbox mode.
I'm able to receive email when I sign up but when I try to reset the password I get SMTPDataError with exception
(554, b'Message rejected: Email address is not verified. The following identities failed the check in region AP-SOUTH-1: webmaster@localhost')
How can this issue be resolved?
As it shows in the error message, Django is using webmaster@localhost for sending the email through Amazon SES. However, webmaster@localhost is an unverified email and one that is not possible to verify. The intended FROM email address must be a different one but by default Django uses webmaster@localhost.
To resolve this add a property in settings.py file of project
DEFAULT_FROM_EMAIL = '[email protected]>'
so that Django uses your intended FROM email address.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With