Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"[Site]" in email subject line when django-allauth sends email

I'm using django-allauth for user authentication in my Django project. Right now account emails are being sent through MailGun.

When a password reset or confirm account email comes through, [Site] is printed in the subject line of the email as such:

[Site] Password Reset E-mail

How can I remove this?

Thanks.

like image 213
user2771150 Avatar asked Oct 24 '25 15:10

user2771150


1 Answers

Set ACCOUNT_EMAIL_SUBJECT_PREFIX = '' in your settings. All-auth has a ton of custom settings... I have learned that anytime something is configured not to my liking, there's probably a setting available as opposed to having to override their code. https://django-allauth.readthedocs.io/en/latest/configuration.html

like image 91
ambe5960 Avatar answered Oct 26 '25 06:10

ambe5960



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!