'Amazon SES SMTP SMTPDataError: (554, "Transaction failed: Missing final '@domain'") in python

I am trying to send an email with attachment using AmazonSES SMTP but I am getting the following error:

SMTPDataError: (554, "Transaction failed: Missing final '@domain'")

I have followed the methods mentioned in the folowing link https://forums.aws.amazon.com/ann.jspa?annID=1278 to use the amazon SMTP services. Does anyone have any ideas as to why I am getting this error?



Solution 1:[1]

I was getting this error when ADMINS variable didn't contain proper values, it was:

ADMINS = ('[email protected]',)

but should be

ADMINS = (
    ('Name', '[email protected]'),
)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 romanlv