Connection timeout issue sending email in Django

后端 未结 2 1842
無奈伤痛
無奈伤痛 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:45

    'Connection timed out' means Django couldn't connect to your email server. Type this on a command line:

    telnet smtp.xxxx.com.kh 25
    

    You should get a response from the email server, something like:

    220 rufus Python SMTP proxy version 0.2
    

    If you don't get a response,you have found the problem.

    Here's a handy command to run a local development server, on Linux:

    sudo /usr/lib/python2.6/smtpd.py -n -c DebuggingServer 127.0.0.1:25
    

提交回复
热议问题