解决Django Mail from must equal authorized user', 'webmaster@localhost' 问题

Django的密码发信人是'webmaster@localhost', 参见官方文档settings.py

DEFAULT_FROM_EMAIL?

Default: 'webmaster@localhost'

Default email address to use for various automated correspondence from the site manager(s). This doesn’t include error messages sent to ADMINS and MANAGERS; for that, see SERVER_EMAIL.


在使用Django.contrib.auth.views时会出现发信人与认证用户名不匹配,报553错误.
解决办法:
修改django默认发信人,在project的settings.py中添加

解决Django Mail from must equal authorized user', 'webmaster@localhost' 问题

上一篇:做有市场思维的开发人员


下一篇:[软考考点解析]软件设计师--正规式与正规集