Browse Source

stripped html-tags from emails

master
Benni Baermann 3 years ago
parent
commit
0c863bce22
3 changed files with 2 additions and 9 deletions
  1. +0
    -7
      TODO
  2. +1
    -1
      input/templates/input/if_mail.txt
  3. +1
    -1
      input/templates/input/ifg_volunteer_mail.txt

+ 0
- 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:

+ 1
- 1
input/templates/input/if_mail.txt 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 %}

+ 1
- 1
input/templates/input/ifg_volunteer_mail.txt 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 %}

Loading…
Cancel
Save