Browse Source

survey mail slightly changed

master
Benni Baermann 3 years ago
parent
commit
36d56bbfa5
3 changed files with 2 additions and 6 deletions
  1. +0
    -4
      README.md
  2. +1
    -1
      input/management/commands/sendmails.py
  3. +1
    -1
      input/templates/input/survey_mail.txt

+ 0
- 4
README.md View File

@ -65,10 +65,6 @@ run the following commands:
python3 manage.py migrate
python3 manage.py collectstatic
add to cron at least one time a day:
python3 manage.py sendmails
server starts with
nohup gunicorn --forwarded-allow-ips="*" -b '0:8000' foerderbarometer.wsgi 2&> logfile &

+ 1
- 1
input/management/commands/sendmails.py View File

@ -36,7 +36,7 @@ class Command(BaseCommand):
'SURVEYPREFIX': SURVEYPREFIX, }
mail_template = get_template('input/survey_mail.txt')
try:
send_mail('Projektende erreicht',
send_mail('Dein Feedback zur Förderung durch Wikimedia Deutschland',
mail_template.render(context),
IF_EMAIL,
[email],

+ 1
- 1
input/templates/input/survey_mail.txt View File

@ -1,4 +1,4 @@
Hallo {{realname}},
Hallo,
Vor einiger Zeit durfte Wikimedia Deutschland Deine Aktivität für Freies Wissen
unterstützen.

Loading…
Cancel
Save