Password reset from address

39 views
Skip to first unread message

Larry Martell

unread,
Dec 14, 2018, 1:03:07 PM12/14/18
to django...@googlegroups.com
Is there a way to set the from address used in the password reset email?

Andréas Kühne

unread,
Dec 14, 2018, 3:52:04 PM12/14/18
to django...@googlegroups.com
Hi,

Check the views for password reset in the django.contrib.auth package. You can add the form_email by creating a class that inherits the PasswordResetView and sets the from_email property on that view.

Regards,

Andréas


Den fre 14 dec. 2018 kl 19:02 skrev Larry Martell <larry....@gmail.com>:
Is there a way to set the from address used in the password reset email?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACwCsY64VB%3DM6639vkyU_3B4BYSzWsO3ZGCjh1RRHv%2Bq_BeXRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

malisutnau

unread,
Dec 15, 2018, 10:32:20 AM12/15/18
to andrea...@hypercode.se, django...@googlegroups.com
Thankyou sir



Sent from my Mi phone

Larry Martell

unread,
Dec 17, 2018, 10:29:06 AM12/17/18
to django...@googlegroups.com
Thanks for the reply, Andréas, but I just found this in the docs,
which I had missed before:

https://docs.djangoproject.com/en/2.1/ref/settings/#std:setting-DEFAULT_FROM_EMAIL

Andréas Kühne

unread,
Dec 17, 2018, 1:03:09 PM12/17/18
to django...@googlegroups.com
Hi,

Yes - but that sets the from email on ALL emails that don't specifically define any other - if that's what you are after - that would work :-)

Regards,

Andréas


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
Reply all
Reply to author
Forward
0 new messages