Connection timeout issue sending email in Django

后端 未结 2 1845
無奈伤痛
無奈伤痛 2021-01-13 07:29

I read from

http://www.packtpub.com/article/friends-via-email-social-web-application-django-1.0

and follow the steps: => And change my setting.py



        
2条回答
  •  悲&欢浪女
    2021-01-13 07:44

    You code looks correct, so I think there is a problem with your settings. Are you positive that specified the EMAIL_HOST and EMAIL_PORT correctly?

    Note: Its EMAIL_USE_TLS not MAIL_USE_TLS and you can set your from address (3rd parameter in send_mail function) to None if you want it to take your DEFAULT_FROM_EMAIL value.

提交回复
热议问题