stripped html-tags from emails

This commit is contained in:
Benni Bärmann 2021-10-05 11:49:57 +02:00
parent 49a0fa63ac
commit 0c863bce22
3 changed files with 2 additions and 9 deletions

7
TODO
View File

@ -1,9 +1,5 @@
known bugs:
- there is html-code in some plain text mails, because they use
models.TYPE_CHOICES, which is in html, because it is mainly used for the
webside side of things.
- helptext by /intern email: "Bitte gib deine E-Mail-Adresse ein, damit dich
Wikimedia Deutschland bei Rückfragen oder für
die Zusage kontaktieren kann." maybe this this misleading?
@ -11,9 +7,6 @@ die Zusage kontaktieren kann." maybe this this misleading?
- if the mailserver is unavaiable we just produce "Server Error 500", which is not very telling.
There should maybe also a way to handle mails later if first delivery failed.
- there are some issues with the ifg_volunteer_mail.txt template.
- project.pk generation fails at the moment (seond save() in old code)
other known problems:

View File

@ -2,7 +2,7 @@ Hallo Team Ideenförderung,
es gab einen neuen Antrag von {{data.realname}}.
Der Nutzer mit dem Username {{data.username}} ({{data.email}}) fragt ein_e {{data.typestring}} an.
Der Nutzer mit dem Username {{data.username}} ({{data.email}}) fragt ein_e {{data.typestring|striptags}} an.
{% if data.choice in data.grant %}
Vorraussichtliche Kosten: {{data.cost}}
Anmerkungen: {{data.notes}} {% endif %} {% if data.choice in data.domain %}

View File

@ -1,6 +1,6 @@
Hallo {{data.realname}},
wir haben Deine Anfrage ({{data.typestring}}) erhalten.
wir haben Deine Anfrage ({{data.typestring|striptags}}) erhalten.
{% if data.choice in data.grant %}
Vorraussichtliche Kosten: {{data.cost}}
Anmerkungen: {{data.notes}} {% endif %} {% if data.choice in data.domain %}