From ad8029202fc8274d92cd7b2db607b681562a6692 Mon Sep 17 00:00:00 2001 From: Max Yakovenko Date: Wed, 1 Aug 2018 08:18:48 +0300 Subject: [PATCH] separate plain text email templates from html one --- .../emails/contact_email_notification.html | 3 --- .../emails/{ => html}/activation_email.html | 0 .../html/contact_email_notification.html | 18 ++++++++++++++++++ .../{ => html}/password_reset_email.html | 0 .../emails/txt/contact_email_notification.txt | 17 +++++++++++++++++ 5 files changed, 35 insertions(+), 3 deletions(-) delete mode 100644 templates/emails/contact_email_notification.html rename templates/emails/{ => html}/activation_email.html (100%) create mode 100644 templates/emails/html/contact_email_notification.html rename templates/emails/{ => html}/password_reset_email.html (100%) create mode 100644 templates/emails/txt/contact_email_notification.txt diff --git a/templates/emails/contact_email_notification.html b/templates/emails/contact_email_notification.html deleted file mode 100644 index 13a7f19..0000000 --- a/templates/emails/contact_email_notification.html +++ /dev/null @@ -1,3 +0,0 @@ -{% extends 'email_base.html' %} -{% block email_body %} -{% endblock email_body %} diff --git a/templates/emails/activation_email.html b/templates/emails/html/activation_email.html similarity index 100% rename from templates/emails/activation_email.html rename to templates/emails/html/activation_email.html diff --git a/templates/emails/html/contact_email_notification.html b/templates/emails/html/contact_email_notification.html new file mode 100644 index 0000000..44fe376 --- /dev/null +++ b/templates/emails/html/contact_email_notification.html @@ -0,0 +1,18 @@ +{% extends 'email_base.html' %} +{% block pre_header %} + Запрос на обратную связь от пользователя +{% endblock pre_header %} +{% block email_body %} +

+ Пользователь {{ name }} отправил вам запрос по продукту {{ subject }}. +

+

+ Чтобы связаяться для уточнения информации. + Используйте следующий почтовый ящик {{ email }} для ответа . +

+ {% if phone %} +

+ Либо используйте мобильный номер телефона {{ phone }} +

+ {% endif %} +{% endblock email_body %} diff --git a/templates/emails/password_reset_email.html b/templates/emails/html/password_reset_email.html similarity index 100% rename from templates/emails/password_reset_email.html rename to templates/emails/html/password_reset_email.html diff --git a/templates/emails/txt/contact_email_notification.txt b/templates/emails/txt/contact_email_notification.txt new file mode 100644 index 0000000..50447c6 --- /dev/null +++ b/templates/emails/txt/contact_email_notification.txt @@ -0,0 +1,17 @@ +===================================================================== + Запрос на обратную связь от пользователя +===================================================================== + +---------------------------------------------------------------------- +Пользователь {{ name }} отправил вам запрос по продукту {{ subject }}. + +Чтобы связаяться для уточнения информации. + +Используйте следующий почтовый ящик {{ email }} для ответа. + +{% if phone %} + Либо используйте мобильный номер телефона {{ phone }} . +{% endif %} + +---------------------------------------------------------------------- +