How to specify name in Django mail? How to specify name in Django mail? django django

How to specify name in Django mail?


You can use

"(MyCompany) Support <no-reply@mycompany.com>"

as the from address in the call to send_mail.


Those solutions are useful if you're using django's email package directly. However, i didn't want to look for a hook to override the way that django-registration uses send_mail so I found the following setting when going through the django files, which lets you set a default from email.

 DEFAULT_FROM_EMAIL='(My Company) Support <no-reply@mycompany.com>' 

and it worked!

Figured someone else may find it useful, although i'm not so pretentious as to mark my own answer as correct.


DEFAULT_FROM_EMAIL='(My Company) Support '

Helped me to solve the issue.