EMAIL_BACKEND = ‘django.core.mail.backends.smtp.EmailBackend’ #固定
EMAIL_HOST = “smtp.qq.com” #SMTP地址
EMAIL_PORT = 25 #SMTP端口SMTP
EMAIL_HOST_USER = “xxxxx@qq.com” #发送邮箱的邮件
EMAIL_HOST_PASSWORD = “xxxx” #授权码
EMAIL_USE_TLS = True # 与SMTP服务器通信时,是否启动TLS链接(安全链接)默认false qq邮箱发送需要开启为True
EMAIL_FROM = “xxxxx@qq.com” #收件人看到的发送人
django发送邮件配置
最新推荐文章于 2022-07-07 13:45:38 发布