Delegate remainder mail.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Sat, 05 Dec 2009 10:01:38 +0530
changeset 45 a7cb2566be42
parent 44 c390adb66ba6
child 46 971ba6d7a529
Delegate remainder mail.
project/templates/notifications/reminder_mail.html
scripts/mails.py
--- a/project/templates/notifications/reminder_mail.html	Sat Dec 05 09:39:02 2009 +0530
+++ b/project/templates/notifications/reminder_mail.html	Sat Dec 05 10:01:38 2009 +0530
@@ -1,38 +1,45 @@
 Hello {{ name }},
   The first edition of the Indian SciPy conference, SciPy.in 2009 is
 fast approaching and we are all excited. The response for the confe-
-rence so far has been overwhelming. Thank you for your enthusiasam
+rence so far has been overwhelming. Thank you for your enthusiasm
 and making this possible. Some important details regarding SciPy.in.
 
-1. If you have any queries regarding SciPy.in conference or the
-SciPy.in website, please send a mail to admin@scipy.in.
+1. We got a few complaints before that some of them never received
+the activation mail. But indeed we realized later that the mails
+were sent to spam for some of them. So I am intentionally sending
+this from my gmail ID. So, please add admin@scipy.in to your 
+trusted contacts list. All further communication will be done
+through that email ID.
 
-2. If you had registered for SciPy.in 2009 long back and did not
+2. If you have any queries regarding SciPy.in 2009 conference or
+the SciPy.in website, please send a mail to admin@scipy.in.
+
+3. If you had registered for SciPy.in 2009 long back and did not
 activate your accounts as instructed in the Activation mail sent or
 you haven't received the activation mail, please send a request to
 admin@scipy.in to get the account activated. After activating the
 account please follow in the instructions in point 4, below.
 
-3. By now you would have known that there is a registration fee for
-SciPy.in conference. If not here is the details. We are charging a
+4. By now you would have known that there is a registration fee for
+SciPy.in conference. If not here are the details. We are charging a
 registration fee of Rs.200 for the conference only. However there
 are no registration fees for Tutorials or Sprint. The registration
 fee for the conference can be paid at the registration desk at the
 venue on the day of conference.
 
-4. If you have just created an account on http://scipy.in and have
+5. If you have just created an account on http://scipy.in and have
 not furnished further details about yourself till now, please do so
 by logging in to the site and then click on the registration link on
 the left panel again. You will be requested for other details. Please
 fill in the relevant details. This information is required for us to
-conduct SciPy smoothly. Without this, your registration is incomplete
-and we are sorry to tell that it will be not be possible for us to
-accommodate you for the conference. 
+conduct SciPy.in 2009 smoothly. Without this, your registration is
+incomplete and we are sorry to tell you that it will be not be
+possible for us to accommodate you for the conference. 
 
-5. Optionally you can click on "Edit Profile" link at the top of the
+6. Optionally you can click on "Edit Profile" link at the top of the
 page once you login and fill in your bio in that form.
 
-6. As conference is fast approaching, we will start posting updates
+7. As conference is fast approaching, we will start posting updates
 through our site's update section. This section is not present yet,
 but it will appear on the left panel soonish, stay tuned. In addition
 to that if you are twitter-savy you can start following us on twitter
--- a/scripts/mails.py	Sat Dec 05 09:39:02 2009 +0530
+++ b/scripts/mails.py	Sat Dec 05 10:01:38 2009 +0530
@@ -11,6 +11,7 @@
 from django.template import loader
 
 from project.kiwipycon.talk.models import Talk
+from django.contrib.auth.models import User
 
 
 def speaker_accepted():
@@ -31,6 +32,7 @@
         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.
@@ -47,4 +49,22 @@
                                   'title': talk.title})
 
         talk.speaker.email_user(subject=subject, message=message,
-                                from_email='admin@scipy.in')
\ No newline at end of file
+                                from_email='admin@scipy.in')
+
+
+def delegate_remainder():
+    """Sends a mail to each speaker whose talk has been accepted
+    informing them about the their sponsorship.
+    """
+
+    regs = User.objects.all()
+
+    template = 'notifications/remainder_mail.html'
+
+    for reg in regs:
+        subject = 'SciPy.in 2009: Remainder and details'
+        message = loader.render_to_string(
+            template, dictionary={'name': reg.user.username})
+
+        reg.user.email_user(subject=subject, message=message,
+                            from_email='admin@scipy.in')
\ No newline at end of file