email console backend is silent

47 views
Skip to first unread message

Mike Dewhirst

unread,
Sep 25, 2016, 7:53:20 PM9/25/16
to 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

unread,
Sep 27, 2016, 2:31:34 PM9/27/16
to Django users
I would put print statements in the Django source code and try to follow its execution.

Mike Dewhirst

unread,
Sep 29, 2016, 3:48:29 AM9/29/16
to 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
Reply all
Reply to author
Forward
0 new messages