Added last day mail.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Sat, 12 Dec 2009 02:44:13 +0530
changeset 61 959ec5eaafb1
parent 60 b078d1833e58
child 62 59190c2d1988
Added last day mail.
project/templates/notifications/last_day_mail.html
scripts/mails.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/templates/notifications/last_day_mail.html	Sat Dec 12 02:44:13 2009 +0530
@@ -0,0 +1,26 @@
+Hello {{ name }},
+  The first edition of the Indian version of SciPy conference, dubbed
+SciPy.in 2009 starts from tomorrow. The entire SciPy.in team is
+looking forward to meet you all. Thanks for all the response and
+enthusiasm you have shown towards the conference. 
+
+  The team has updated the website with the final schedule for the
+conference. The schedule is available at the URL:
+http://scipy.in/talks-cfp/schedule/
+
+  Please check the website for the schedule posted and stay tuned for
+more updates. If you are twitter/indenti.ca savy, the id of the team
+is fossee on both twitter and identi.ca. Also, please use the hashtags
+#scipy #india or just #scipy. Please don't use #scipy.in because
+twitter robs the dots ;-)
+
+  The website is also updated with "How to reach the venue?" and
+"Accommodation" details. Please check them. 
+
+  Last but not the least, any issue getting to the Techno park or any
+help you want regarding SciPy.in 2009, please call me on this number:
++91-9987214220. My name is Madhusudan.C.S 
+
+--
+ Thanks,
+ SciPy.in team
--- a/scripts/mails.py	Sat Dec 12 02:29:33 2009 +0530
+++ b/scripts/mails.py	Sat Dec 12 02:44:13 2009 +0530
@@ -89,6 +89,24 @@
                                   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.
     """