X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/a2990772dfc18c810d16561ce4abbcaabc9f3637..130e1c7f8c43261d0e85e5ff9a354f037bb7cd24:/wtem/management/commands/wtem_send_keys.py diff --git a/wtem/management/commands/wtem_send_keys.py b/wtem/management/commands/wtem_send_keys.py index cff7bf3..05ffcbb 100644 --- a/wtem/management/commands/wtem_send_keys.py +++ b/wtem/management/commands/wtem_send_keys.py @@ -5,7 +5,7 @@ from optparse import make_option from django.core.management.base import BaseCommand, CommandError from django.conf import settings -from django.core.mail import send_mail +from wtem.management.commands import send_mail from django.template.loader import render_to_string from wtem.models import Submission, DEBUG_KEY @@ -63,9 +63,7 @@ class Command(BaseCommand): def send_key(self, submission): self.stdout.write('>>> sending to ' + submission.email) send_mail( - "WTEM - Twój link do zadań", - render_to_string('wtem/email_key.txt', dict(submission = submission)), - getattr(settings, 'WTEM_CONTACT_EMAIL', 'no-reply@edukacjamedialna.edu.pl'), - [submission.email], - fail_silently=False + subject = "WTEM - Twój link do zadań", + body = render_to_string('wtem/email_key.txt', dict(submission = submission)), + to = [submission.email] ) \ No newline at end of file