X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/543746a467e90915f7eaf60b7b09f5fa498056e0..51ae9f7e07ff895e81a7ff48cae0c24fb59076bc:/wtem/management/commands/__init__.py?ds=inline diff --git a/wtem/management/commands/__init__.py b/wtem/management/commands/__init__.py index 494edb6..7fe1eba 100644 --- a/wtem/management/commands/__init__.py +++ b/wtem/management/commands/__init__.py @@ -1,6 +1,7 @@ from django.core.mail import EmailMessage from django.conf import settings + def send_mail(subject, body, to): if not isinstance(to, list): to = [to] @@ -10,7 +11,8 @@ def send_mail(subject, body, to): if reply_to: headers['Reply-To'] = reply_to - email = EmailMessage(subject, body, - getattr(settings, 'WTEM_FROM', 'edukacjamedialna@nowoczesnapolska.org.pl'), - to, headers = headers) - email.send(fail_silently = False) \ No newline at end of file + email = EmailMessage( + subject, body, + getattr(settings, 'WTEM_FROM', 'olimpiada@nowoczesnapolska.org.pl'), + to, headers=headers) + email.send()