Django default_from_email name

不打扰是莪最后的温柔 提交于 2019-12-09 04:29:28

问题


I am looking to add a name to my default_from_email address in Django and wanted to know whether you do this through the settings.py file?

you have your different options.

DEFAULT_FROM_EMAIL
EMAIL_HOST
EMAIL_PASSWORD
...

but the email result still ends in from: noreply@mydomain.com and I would like to change this into My Domain instead.


回答1:


set

DEFAULT_FROM_EMAIL = 'My Domain <noreply@mydomain.com>'


来源:https://stackoverflow.com/questions/3744680/django-default-from-email-name

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!