summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mails.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/mails.py b/scripts/mails.py
index bbb85e9..1634b51 100644
--- a/scripts/mails.py
+++ b/scripts/mails.py
@@ -89,6 +89,24 @@ def delegate_about_event():
from_email='madhusudancs@gmail.com')
+def delegate_last_day():
+ """Sends a mail to each confirmed delegate informing
+ them about the final details.
+ """
+
+ regs = Registration.objects.all()
+
+ template = 'notifications/last_day_mail.html'
+
+ for reg in regs:
+ subject = 'SciPy.in 2009: Schedule and other details'
+ message = loader.render_to_string(
+ template, dictionary={'name': reg.registrant.username})
+
+ reg.registrant.email_user(subject=subject, message=message,
+ from_email='madhusudancs@gmail.com')
+
+
def speaker_confirmation():
"""Sends a mail to each speaker asking for confirmation.
"""