Django doesn't email reporting an internal server error (HTTP status code 500)
问题 I could send mail using the following code E:\Python\django-test\LYYDownloaderServer>python manage.py shell Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (In tel)] on win32 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from django.core.mail import send_mail >>> >>> send_mail( ... 'Subject here', ... 'Here is the message.', ... 'redstone-cold@163.com', ... ['2281570025@qq.com'], ... fail_silently=False, ... ) 1 >>