Django 1.8 sending mail using gmail SMTP

前端 未结 7 876
旧巷少年郎
旧巷少年郎 2020-11-28 07:15

I was trying send a mail using smtp.gmail.com in django 1.8

My settings.py contains:

E         


        
相关标签:
7条回答
  • 2020-11-28 07:54

    replace in your settings.py file :

    EMAIL_BACKEND = 'django_smtp_ssl.SSLEmailBackend'
    

    by

    EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

    0 讨论(0)
提交回复
热议问题