X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/543746a467e90915f7eaf60b7b09f5fa498056e0..d555d988764995ea1f9f5ece46f453a66f09b334:/wtem/management/commands/__init__.py diff --git a/wtem/management/commands/__init__.py b/wtem/management/commands/__init__.py deleted file mode 100644 index 494edb6..0000000 --- a/wtem/management/commands/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -from django.core.mail import EmailMessage -from django.conf import settings - -def send_mail(subject, body, to): - if not isinstance(to, list): - to = [to] - - reply_to = getattr(settings, 'WTEM_REPLY_TO', None) - headers = dict() - 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