email console backend is silent

已查看 47 次
跳至第一个未读帖子

Mike Dewhirst

未读,
2016年9月25日 19:53:202016/9/25
收件人 Django users
Some little time ago my admin site stopped sending password reset
emails. After checking all the credentials, ports, server names, etc it
is still silent.

So in the dev-server I set EMAIL_BACKEND =
'django.core.mail.backends.console.EmailBackend' and proceeded to
request a password reset. Nothing was emitted by the dev-server apart
from ...

Quit the server with CTRL-BREAK.
[26/Sep/2016 09:30:38] "GET /admin/ HTTP/1.1" 302 0
[26/Sep/2016 09:30:38] "GET /admin/login/?next=/admin/ HTTP/1.1" 200 2374
[26/Sep/2016 09:30:40] "GET /admin/password_reset/ HTTP/1.1" 200 1911
[26/Sep/2016 09:30:44] "POST /admin/password_reset/ HTTP/1.1" 302 0
[26/Sep/2016 09:30:44] "GET /admin/password_reset/done/ HTTP/1.1" 200 1784

How do I start debugging this?

Thanks

Mike

EMAIL_HOST = (my ISP's valid, pingable smtp host name)
EMAIL_PORT = 465
EMAIL_HOST_USER = (correct username issued by my ISP)
EMAIL_HOST_PASSWORD = (working password)
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER



Tim Graham

未读,
2016年9月27日 14:31:342016/9/27
收件人 Django users
I would put print statements in the Django source code and try to follow its execution.

Mike Dewhirst

未读,
2016年9月29日 03:48:292016/9/29
收件人 Django users
Thanks Tim

Followed the code to the query to return users with the entered email address and that triggered a deeper look to check I was entering the correct email address. I wasn't. My bad. Django's good.

Mike
回复全部
回复作者
转发
0 个新帖子