[Django]-Django emailing on errors

5👍

Yep, it’s not ADMINS = () that receives SEND_BROKEN_LINK_EMAILS, it’s MANAGERS = ()

https://docs.djangoproject.com/en/dev/ref/settings/#managers

https://docs.djangoproject.com/en/dev/howto/error-reporting/#errors

Add this right under ADMINS and it should work:

MANAGERS = ADMINS

You may also want to specify EMAIL_BACKEND in settings, e.g. assuming SMTP:

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

https://docs.djangoproject.com/en/dev/ref/settings/#email-backend

Leave a comment