1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{% load i18n extra_tags email_tags %}
{% declare %}
prefix = smart_str(settings.EMAIL_SUBJECT_PREFIX)
app_name = smart_str(settings.APP_SHORT_NAME)
exclude_greeting = True
exclude_finetune = True
{% enddeclare %}
{% email %}
{% subject %}{% blocktrans %}{{ prefix }} Feedback message from {{ app_name }}{% endblocktrans %}{% endsubject %}
{% htmlcontent notifications/base.html %}
<p style="{{ p_style }}">
{% trans "Sender" %}:{% if name %}{{ name }}{% else %}{% trans "anonymous" %}{% endif %}<br />
{% trans "email" %}: {{ email }}
<br/>
ip: {{ ip }}
</p>
<blockquote>
{% trans "Message body:" %} {{ message }}
</blockquote>
{% endhtmlcontent %}
{% textcontent notifications/base_text.html %}
{% trans "Sender" %}: {% if name %}{{ name|safe }}{% else %}{% trans "anonymous" %}{% endif %}
{% trans "email" %}: {{ email|safe }}
ip: {{ ip }}
{% trans "Message body:" %} {{ message|safe }}
{% endtextcontent %}
{% endemail %}