Browse Source

survey mail slightly changed

master
Benni Bärmann 10 months ago
parent
commit
36d56bbfa5
  1. 4
      README.md
  2. 2
      input/management/commands/sendmails.py
  3. 2
      input/templates/input/survey_mail.txt

4
README.md

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

2
input/management/commands/sendmails.py

@ -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],

2
input/templates/input/survey_mail.txt

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