Question

Je cherche à ajouter un nom à mon adresse default_from_email dans Django et je voulais savoir si vous faites cela dans le fichier settings.py?

vous avez vos différentes options.

DEFAULT_FROM_EMAIL
EMAIL_HOST
EMAIL_PASSWORD
...

mais le résultat email se termine toujours à partir de:. noreply@mydomain.com et je voudrais changer cela en My Domain place

Était-ce utile?

La solution

Set

DEFAULT_FROM_EMAIL = 'My Domain <noreply@mydomain.com>'
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top