I am trying to send an email using Django send_email, smtp and gmail. However, the code returns SMTPConnectError (-1, ' ') My settings.py file: My views.py file:
The traceback: When I change the EMAIL_BACKEND to: it works fine. Also, it doesn't show the error when I use dummy backend. I have tried using SSL instead of TLS, unlocked captcha, allowed less secure apps in gmail, turned off firewall and also tried other stackoverflow posts related to sending email via django but nothing worked. I don't know what the error is. Please help me. Thanks in advance. |
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/afea10d8-96b0-43bd-a4a5-e65b18956be7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment