I have a Django (v1.4) site on Heroku using Mandrill for SMTP. I have all the required values in my settings file:
- EMAIL_HOST_PASSWORD
- EMAIL_HOST_USER
- EMAIL_HOST
- EMAIL_PORT
- SERVER_EMAIL (set to a real address, not root@localhost)
I can send regular emails just fine using send_messages()
manually from the client. But no emails are sent when for 500 errors and calling mail_admins
in the client doesn't produce any errors but also doesn't send an email.
Here is my logging setup:
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'mail_admins': {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler'
}
},
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
}
}
And my ADMINS:
ADMINS = (
('My Name', '[email protected]'),
)
I've checked my Spam folder and there is nothing there. Am I missing something in settings? Or something else?