The Django doc says: In order to send email, EMAIL_HOST, EMAIL_HOST_USER and EMAIL_HOST_PASSWORD are at the very least needed, but as I tested, we should also specify SERVER_EMAIL, and only when SERVER_EMAIL is equal to EMAIL_HOST_USER so can send the email, e.g. EMAIL_HOST = 'smtp.163.com' SERVER_EMAIL = '234327894-cold@163.com' # EMAIL_HOST_USER = '234327894-cold@163.com' # EMAIL_HOST_PASSWORD = '234327894123' # Django uses AdminEmailHandler to send an email to the site admins for each log message it receives. Besides Django, we could also use Python’s logging.handlers.SMTPHandler(mailhost, fromaddr, toaddrs, subject, credentials=None, secure=None, timeout=1.0) to do the same. For example, put the following code in views.py (do change to your account), it will email reporting unhandled exceptions and results in an internal server error (HTTP status code 500). import logging logging.basicConfig(format='%(asctime)s %(message)s...