Django中发件邮箱的设定:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'#邮件发送到邮件服务器
#EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' #邮件发到控制台,调试用
#EMAIL_HOST='smtp.qq.com'
EMAIL_HOST = 'smtp.163.com'
EMAIL_HOST_USER='*****@163.com'
EMAIL_HOST_PASSWORD='*****' #客户端授权码,不是邮箱登录密码。
EMAIL_PORT=25
EMAIL_USE_TLS=True
#EMIAL_USE_TLS = False
DEFAULT_FROM_EMAIL="******@163.com"