Commit d121ff94 by Őry Máté

one: send_mail optional sender

parent b0c990f1
...@@ -9,8 +9,6 @@ from django.core.mail import send_mail ...@@ -9,8 +9,6 @@ from django.core.mail import send_mail
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
class SendMailTask(Task): class SendMailTask(Task):
def run(self, to, subject, msg): def run(self, to, subject, msg, sender=u'noreply@cloud.ik.bme.hu'):
sender = u'noreply@cloud.ik.bme.hu'
send_mail(subject, msg, sender, [ to ], fail_silently=False) send_mail(subject, msg, sender, [ to ], fail_silently=False)
logger.info("[django][one][tasks.py] %s->%s [%s]" % (sender, to, subject) ) logger.info("[django][one][tasks.py] %s->%s [%s]" % (sender, to, subject) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment