sdi/events.py
branchanoop
changeset 178 f87248c912b4
parent 171 27c108711186
child 180 cf9d1af48d4e
--- a/sdi/events.py	Mon Jul 26 17:49:47 2010 +0530
+++ b/sdi/events.py	Mon Jul 26 18:02:24 2010 +0530
@@ -121,7 +121,24 @@
 
     send_mail(subject, message, "sagedays@fossee.in", [user.email])
 
+def send_acco_confirm(user, message):
+    """ take the given message and add it to main message and send the mail.
+    """
 
+    subject = "Sage Days 25, India - Accomodation arranged"
+
+    main_message="""
+Dear %s %s,
+
+Your request for accomodation during Sage Days 25, India has been accepted.
+
+%s
+
+Thanking you,
+
+Sage Days India Team,
+FOSSEE, IIT Bombay.
+    """%(user.first_name.title(), user.last_name.title(),message)
 
 
 def mail_invi(to_emails):