From: Jan Szejko Date: Wed, 7 Nov 2018 14:07:13 +0000 (+0100) Subject: pep8 X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/51ae9f7e07ff895e81a7ff48cae0c24fb59076bc pep8 --- diff --git a/wtem/management/commands/__init__.py b/wtem/management/commands/__init__.py index ce7191f..7fe1eba 100644 --- a/wtem/management/commands/__init__.py +++ b/wtem/management/commands/__init__.py @@ -11,8 +11,8 @@ def send_mail(subject, body, to): if reply_to: headers['Reply-To'] = reply_to - email = EmailMessage(subject, body, + email = EmailMessage( + subject, body, getattr(settings, 'WTEM_FROM', 'olimpiada@nowoczesnapolska.org.pl'), - to, headers = headers) - #print email.message() - email.send(fail_silently = False) + to, headers=headers) + email.send()