additional survey mails to an intern adress added

This commit is contained in:
Benni Baermann 2021-04-13 13:43:29 +02:00
parent ea2c6f6f20
commit b289df8dd3
2 changed files with 3 additions and 2 deletions

View file

@ -8,7 +8,7 @@ from django.conf import settings
from input.models import Project, Library, HonoraryCertificate, Travel, Email,\ from input.models import Project, Library, HonoraryCertificate, Travel, Email,\
BusinessCard, List, IFG, Literature BusinessCard, List, IFG, Literature
from input.settings import IF_EMAIL, SURVEYPREFIX from input.settings import IF_EMAIL, SURVEYPREFIX, SURVEY_EMAIL
class Command(BaseCommand): class Command(BaseCommand):
''' mails will be send here: ''' mails will be send here:
@ -39,7 +39,7 @@ class Command(BaseCommand):
send_mail('Dein Feedback zur Förderung durch Wikimedia Deutschland', send_mail('Dein Feedback zur Förderung durch Wikimedia Deutschland',
mail_template.render(context), mail_template.render(context),
IF_EMAIL, IF_EMAIL,
[email], [email, SURVEY_EMAIL],
fail_silently=False) fail_silently=False)
except BadHeaderError: except BadHeaderError:
return HttpResponse('Invalid header found.') return HttpResponse('Invalid header found.')

View file

@ -1,5 +1,6 @@
# mail for IF-OTRS # mail for IF-OTRS
IF_EMAIL = 'community@wikimedia.de' IF_EMAIL = 'community@wikimedia.de'
SURVEY_EMAIL = 'christof.pins@wikimedia.de'
# prefix for urls # prefix for urls
SURVEYPREFIX = 'https://wikimedia.sslsurvey.de/Foerderbarometer/?' SURVEYPREFIX = 'https://wikimedia.sslsurvey.de/Foerderbarometer/?'