From 631b7e51d4c1c81acb12ed452990576312261a77 Mon Sep 17 00:00:00 2001 From: Madhusudan.C.S Date: Mon, 28 Dec 2009 23:25:47 +0530 Subject: Proceedings details mail. --- scripts/mails.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'scripts') diff --git a/scripts/mails.py b/scripts/mails.py index 1634b51..b9705f8 100644 --- a/scripts/mails.py +++ b/scripts/mails.py @@ -123,3 +123,19 @@ def speaker_confirmation(): talk.speaker.email_user(subject=subject, message=message, from_email='admin@scipy.in') + +def proceedings_detail(): + """Sends a mail to each speaker informing them about proceedings + """ + + talks = Talk.objects.all() + + template = 'notifications/proceedings_detail_mail.html' + + for talk in talks: + subject = 'SciPy.in 2009 Proceedings' + message = loader.render_to_string( + template, dictionary={'name': talk.speaker.username}) + + talk.speaker.email_user(subject=subject, message=message, + from_email='admin@scipy.in') -- cgit