summaryrefslogtreecommitdiff
path: root/scripts/mails.py
diff options
context:
space:
mode:
authorMadhusudan.C.S2009-12-28 23:25:47 +0530
committerMadhusudan.C.S2009-12-28 23:25:47 +0530
commit631b7e51d4c1c81acb12ed452990576312261a77 (patch)
treef56206fd16baefd06560c0af4e688885dc433c29 /scripts/mails.py
parente27b0e051213675f7c2087345fda317870ad1b51 (diff)
downloadscipycon-631b7e51d4c1c81acb12ed452990576312261a77.tar.gz
scipycon-631b7e51d4c1c81acb12ed452990576312261a77.tar.bz2
scipycon-631b7e51d4c1c81acb12ed452990576312261a77.zip
Proceedings details mail.
Diffstat (limited to 'scripts/mails.py')
-rw-r--r--scripts/mails.py16
1 files changed, 16 insertions, 0 deletions
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')