You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DEFAULT_FROM_EMAIL = 'My Company Name <do_not_reply@example.com>'
When I use that syntax with django-ses, and supply it to the sender= argument, I get a Boto error:
boto.exception.BotoServerError: BotoServerError: 403 Forbidden
<ErrorResponse xmlns="http://ses.amazonaws.com/doc/2010-12-01/">
<Error>
<Type>Sender</Type>
<Code>AccessDenied</Code>
<Message>User xxxxxxxxxxxxx is not authorized to perform `ses:SendRawEmail' on resource do_not_reply@example.com</Message>
</Error>
<RequestId>xxxxxxxxxxxxxxxxxxxxxxx</RequestId>
</ErrorResponse>
When I am otherwise able to send email fine from do_not_reply@example.com if I don't use the Django syntax for supplying a from_email_name.
The error message is a clue that the 'My Company Name <do_not_reply@example.com>' syntax is being parsed correctly at some point, but the permission-checking part is not the same as if I were to supply 'do_not_reply@example.com'.
The text was updated successfully, but these errors were encountered:
chrisconlan
changed the title
Permission error thrown when setting default a from_email_name through Django send_mail syntax
Permission error thrown when setting default a from_email_name through Django send_mail syntax
Jul 5, 2018
Supposedly, Django expects the following syntax when setting a display name for the from email:
https://stackoverflow.com/questions/9911542/how-to-specify-name-in-django-mail
When I use that syntax with django-ses, and supply it to the
sender=
argument, I get a Boto error:When I am otherwise able to send email fine from
do_not_reply@example.com
if I don't use the Django syntax for supplying afrom_email_name
.The error message is a clue that the
'My Company Name <do_not_reply@example.com>'
syntax is being parsed correctly at some point, but the permission-checking part is not the same as if I were to supply'do_not_reply@example.com'
.The text was updated successfully, but these errors were encountered: