Browse Source

stripped html-tags from emails

master
Benni Bärmann 1 year ago
parent
commit
0c863bce22
  1. 7
      TODO
  2. 2
      input/templates/input/if_mail.txt
  3. 2
      input/templates/input/ifg_volunteer_mail.txt

7
TODO

@ -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:

2
input/templates/input/if_mail.txt

@ -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 %}

2
input/templates/input/ifg_volunteer_mail.txt

@ -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 %}

Loading…
Cancel
Save