Monday, April 3, 2017

Re: Django SMTP Email backend error

Hello,

Usually port 465 needs EMAIL_USE_SSL=True and EMAIL_USE_TLS=False. With port 587 it's usually opposite.

Regards,

A.

Antonis Christofides  http://djangodeployment.com
On 04/02/2017 03:13 PM, Bassam Ramadan wrote:
i'm using the following backend

EMAIL_BACKEND='django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST='ams101.arvixeshared.com'
EMAIL_PORT=465
EMAIL_HOST_USER='my email'
EMAIL_HOST_PASSWORD='my password'
EMAIL_USE_TLS=True

and im getting this error

Exception Type: SMTPServerDisconnected at /email/
Exception Value: Connection unexpectedly closed
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/08e265e7-4c21-4f85-9dff-02fcdb5a5584%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment