Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

django-allauth HTML email not send

I add in my templates folder the following subfolders and files in order to override email messages (following docs https://github.com/pennersr/django-allauth#sending-e-mail)a :

templates/
   account/
     email/
       email_confirmation_message.html
       email_confirmation_message.txt
       email_confirmation_subject.txt

The override works perfectly for *.txt version of email (meaning, I think, I have a correct folder structure) but my problem is the HTML version is not send over by django_allauth.

like image 557
Matthieu Avatar asked Jun 29 '13 17:06

Matthieu


1 Answers

For those facing the same issue :

When it comes to email confirmation django_allauth checks if its a new user or not and looks for template accordingly :

So you'll have to override :

email_confirmation_message.txt
email_confirmation_signup_message.txt

and add HTML version

email_confirmation_message.html
email_confirmation_signup_message.html
like image 103
Matthieu Avatar answered Oct 20 '22 20:10

Matthieu