sdi/events.py
branchanoop
changeset 118 6c3602582f9f
parent 73 dab739f4381a
child 119 eecbb1e59a3a
--- a/sdi/events.py	Sat Jul 17 00:08:33 2010 +0530
+++ b/sdi/events.py	Sat Jul 17 00:26:16 2010 +0530
@@ -4,7 +4,7 @@
     """ send registration complete email to the registered user.
     """
 
-    subject = "Sage Days India 25 - Registration"
+    subject = "Sage Days 25, India - Registration"
 
     message = """
 Dear %s %s,
@@ -31,6 +31,34 @@
 
     send_mail(subject, message, "sagedays@fossee.in", [email])
 
+def send_wsp_ptc_confirm(user):
+    """ send a mail telling that you have been selected to attend sage days.
+    """
+
+    subject = "Sage Days 25, India - Selected for participation"
+
+    message = """
+Dear %s %s,
+
+You have been selected to attend Sage Days 25, India.
+
+Please click the link below or paste it in a browser to confirm your participation.
+http://fossee.in/sage_days/registration/cnf_sgd_ptc/%s?email=%s
+
+Please ignore this mail if you are not likely to attend Sage Days 25, India.
+
+PS:
+Your participation will be confirmed only if you visit the link above at the latest by 26 July, 2010.
+If you by any chance have not confirmed your participation by 26 July,  2010 and still want to participate, write a mail to sagedays@fossee.in
+
+Thanking you,
+
+Sage Days India Team,
+FOSSEE, IIT Bombay.
+    """%(user.first_name.title(), user.last_name.title(), user.id, [user.email])
+
+    send_mail(subject, message, "sagedays@fossee.in", [email])
+
 def mail_invi(to_emails):
     """ send the invitation email to given email addresses.
     """