9

How can I set custom email address to be used in "From:" section of all emails, which a sended by django-allauth to users?

By default, users receives emails from webmaster@name_of_my_ubuntu_server - it looks ugly. I want to use something like info@website.com.

Antonio
  • 822
  • 1
  • 10
  • 19

1 Answers1

20

Add the following line to your settings.py:

DEFAULT_FROM_EMAIL = "info@website.com"
Burak Erdem
  • 19,630
  • 7
  • 36
  • 56
dh1tw
  • 1,411
  • 2
  • 23
  • 29
  • Thanks, I found this information surprisingly hard to locate in the documentation. – frankster Jun 11 '16 at 23:17
  • 1
    This is actually part of Django's own settings but it is confusing anyway; see https://docs.djangoproject.com/en/2.2/ref/settings/#default-from-email – jlapoutre Jul 08 '19 at 08:48
  • thanks! and for those who are looking to customize the name as well, see [this answer](https://stackoverflow.com/a/3744728) TLDR: `DEFAULT_FROM_EMAIL = "John "` – Greg Sadetsky Oct 15 '22 at 00:45