Django-allauth: HTML email template

Created on 31 Jul 2014  路  5Comments  路  Source: pennersr/django-allauth

Sending confirmation html template dosent work for me.
I create custom HTML template according to http://django-allauth.readthedocs.org/en/latest/advanced.html#sending-e-mail but only txt template is send to user

Most helpful comment

Leaving a message here for others. I ended up having to run a debugger to figure this out.

The docs say use account/email/email_confirmation_message.html

However it needs to also include account/email/email_confirmation_signup_message.html

I believe the signup one happens only on a new user account - however for many use cases both should be the same.

txt works because there is always a txt template even if you don't customize it.

All 5 comments

I am sorry, but this does not offer sufficient information to track things down. I suggest you have a look at allauth.account.adapter.DefaultAccountAdapter.render_mail. Do some debugging there to see why things are not working for you. If this ends up being an issue in allauth, simply reopen this ticket...

Leaving a message here for others. I ended up having to run a debugger to figure this out.

The docs say use account/email/email_confirmation_message.html

However it needs to also include account/email/email_confirmation_signup_message.html

I believe the signup one happens only on a new user account - however for many use cases both should be the same.

txt works because there is always a txt template even if you don't customize it.

@bufke answer should be added to the docs

I believe this is still missing from the docs: http://django-allauth.readthedocs.io/en/latest/advanced.html

Where does the account/email/email_confirmation_message.html being used? On account signup it is clearly using this template account/email/email_confirmation_signup_message.html?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lukeburden picture lukeburden  路  5Comments

aliabbas-2012 picture aliabbas-2012  路  6Comments

peterhn picture peterhn  路  4Comments

gitdeepak picture gitdeepak  路  5Comments

ConorMcGee picture ConorMcGee  路  5Comments