Search code examples
pythondjangoemaildjango-oscardjango-email

How to change sender email name in Django


I need to send an email from Django with 'Team Example' as a sender and by default, no-reply@example.com is used.

I have tried this as mentioned in other StackOverflow questions

DEFAULT_FROM_EMAIL = 'Team Example <noreply@example.com>'

in settings.py but it doesn't work.


Solution

  • For , you need to use the OSCAR_FROM_MAIL [readthedocs.io] for:

    The email address used as the sender for all communication events and emails handled by Oscar.

    This will thus be used if Oscar communicates with your users.

    You can thus add a setting:

    OSCAR_FROM_EMAIL = 'Team Blackweb <noreply@example.com>'