summaryrefslogtreecommitdiff
path: root/scripts/mails.py
diff options
context:
space:
mode:
authorMadhusudan.C.S2009-12-05 09:39:02 +0530
committerMadhusudan.C.S2009-12-05 09:39:02 +0530
commitebd0e6a63e635d43e281632e8e1ff6d161875348 (patch)
tree7e68428c4661d7a465f0e05a32ffb3b7ba6f243a /scripts/mails.py
parentf24c51425315a871422a9adef0de70e122193e0f (diff)
downloadscipycon-ebd0e6a63e635d43e281632e8e1ff6d161875348.tar.gz
scipycon-ebd0e6a63e635d43e281632e8e1ff6d161875348.tar.bz2
scipycon-ebd0e6a63e635d43e281632e8e1ff6d161875348.zip
Sponsorship for speakers mail.
Diffstat (limited to 'scripts/mails.py')
-rw-r--r--scripts/mails.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/mails.py b/scripts/mails.py
index 460ee98..686390e 100644
--- a/scripts/mails.py
+++ b/scripts/mails.py
@@ -30,3 +30,21 @@ def speaker_accepted():
talk.speaker.email_user(subject=subject, message=message,
from_email='admin@scipy.in')
+
+def speaker_sponsorship():
+ """Sends a mail to each speaker whose talk has been accepted
+ informing them about the their sponsorship.
+ """
+
+ talks = Talk.objects.all()
+
+ template = 'notifications/speaker_sponsorship_mail.html'
+
+ for talk in talks:
+ subject = 'Details regarding your travel and accommodation for SciPy.in 2009'
+ message = loader.render_to_string(
+ template, dictionary={'name': talk.speaker.username,
+ 'title': talk.title})
+
+ talk.speaker.email_user(subject=subject, message=message,
+ from_email='admin@scipy.in') \ No newline at end of file