Django default_from_email name

2019-03-14 07:55发布

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条回答
不美不萌又怎样
2楼-- · 2019-03-14 08:17

set

DEFAULT_FROM_EMAIL = 'My Domain <noreply@mydomain.com>'
查看更多
登录 后发表回答