Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem to send mails #162

Open
csarcom opened this issue Dec 7, 2018 · 1 comment
Open

Problem to send mails #162

csarcom opened this issue Dec 7, 2018 · 1 comment

Comments

@csarcom
Copy link

csarcom commented Dec 7, 2018

I have this config:

AWS_SES_ACCESS_KEY_ID = 'SOMETHING'
AWS_SES_SECRET_ACCESS_KEY = 'SOMETHING'
AWS_SES_REGION_NAME = 'us-east-1'
AWS_SES_REGION_ENDPOINT = 'email-smtp.us-east-1.amazonaws.com'
EMAIL_BACKEND = 'django_ses.SESBackend'
EMAIL_HOST_TO = 'SOMETHING'
EMAIL_HOST_USER = 'noreply@email-smtp.us-east-1.amazonaws.com'

I am using django.core.mail.EmailMessage and I get this error after some seconds:

File "/usr/lib/python3.6/http/client.py", line 1331, in getresponse
    response.begin()
  File "/usr/lib/python3.6/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.6/http/client.py", line 279, in _read_status
    raise BadStatusLine(line)
http.client.BadStatusLine: 220 email-smtp.amazonaws.com ESMTP SimpleEmailService-3940450689

Any ideia why?

@llloo
Copy link

llloo commented Nov 26, 2019

set AWS_SES_REGION_ENDPOINT = 'email.us-east-1.amazonaws.com'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants