X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/fd65827f7d34921b927dfd735099b0690aa3a2df..5d78f2b7af4ee0f1aa48f1e2538ef40ea6b19b00:/wtem/management/commands/__init__.py?ds=inline diff --git a/wtem/management/commands/__init__.py b/wtem/management/commands/__init__.py index e39656a..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,8 +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) - #print email.message() - email.send(fail_silently = False) + email = EmailMessage( + subject, body, + getattr(settings, 'WTEM_FROM', 'olimpiada@nowoczesnapolska.org.pl'), + to, headers=headers) + email.send()