python - Django allauth Email confirmation sends only html code -


i've setup django-allauth plugin on django==1.6.1, works fine, when try change confirmation message html one, sends html code, doesn't show style or color, or image, template code:

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>confirma tu correo men</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> </head> <body style="margin: 0; padding: 0;"> <table align="center" border="0" cellpadding="0" cellspacing="0" width="810" style="border-collapse: collapse;"> <tr> <td align="center" bgcolor="#2d96da" style="padding: 50px 45px 50px 45px;"> <img src="http://contratalos.s3.amazonaws.com/staticfiles/images/logo_beta.png" alt="contratalos.com" width="300" height="201" style="display: block;" /> </td> </tr> <tr> <td bgcolor="#000000;" style="color: #ffffff; font-family: arial, sans-serif; font-size: 14px;"> <br/> <a href="#" style="color: #ffffff;"><font color="#ffffff"> </font></a>   </td> </tr> <tr> <td style="color: #2d96da; font-family: arial, sans-serif; font-size: 30px; padding: 90px 65px 90px 65px;"> bienvenido contratalos.com<br/> <font color="#000000" align="center">verifica tu correo para que empieces formar <br /> parte de nuestra comunidad 3.0</font> <input type="submit" value="verificar correo" width="300" height="35" style="color:#ffffff; font-size:23px; background-color:#5ac189; margin-top:45px; width: 288px; height: 45px;"><a href="{{ activate_url }}"></a>     </input> </td> </tr> <tr> <td bgcolor="#000000;" style="color: #ffffff; font-family: arial, sans-serif; font-size: 14px; border:0px;"> si no deseas seguir recibiendo nuestros correos, puedes editar tus preferencias de <a href="#" style="color: #ffffff;"><font color="#2d96da">notificaciones aqui</font></a> <br/> contratalos.com | inversiones ctrl venezuela, rif : j-404528510 c.a., caracas - venezuela </td> </tr> </table> </body> </html> 

this code placed on:

myapp/shared/templates/account/email/index.html 

and it's included .txt file:

  myapp/shared/templates/account/email/email_confirmation_signup_message.txt 

like this:

{% include "account/email/index.html" %} 

i leaved logic identical, changed include tag index.html sends it, on yahoo email see code of template, no colors, images, etc...

anybody can shed light on this?

thanks in advance!

nevermind

i changed .txt extension file .html

so file includes html called:

myapp/shared/templates/account/email/email_confirmation_signup_message.html 

works charm, thank you.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -