首页 > 其他分享 >501, b'Mail from address must be same as authorization user.', 'webmaster@localhost&#

501, b'Mail from address must be same as authorization user.', 'webmaster@localhost&#

时间:2023-02-24 20:55:31浏览次数:53  
标签:same HOST user Mail EMAIL localhost 501

问题:重置密码时出错

SMTPSenderRefused at /users/password_reset/ (501, b'Mail from address must be same as authorization user.', 'webmaster@localhost')

解决方案:

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = 'smtp.qq.com' EMAIL_HOST_USER = '[email protected]' EMAIL_HOST_PASSWORD = '***************' EMAIL_PORT = 25 EMAIL_USE_TLS = True DEFAULT_FROM_EMAIL = EMAIL_HOST_USER

 

标签:same,HOST,user,Mail,EMAIL,localhost,501
From: https://www.cnblogs.com/chrisxyz/p/17153080.html

相关文章