sdi/events.py
branchanoop
changeset 178 f87248c912b4
parent 171 27c108711186
child 180 cf9d1af48d4e
equal deleted inserted replaced
177:bbcf2a7d8b6b 178:f87248c912b4
   119 FOSSEE, IIT Bombay.
   119 FOSSEE, IIT Bombay.
   120     """%(user.first_name.title(), user.last_name.title())
   120     """%(user.first_name.title(), user.last_name.title())
   121 
   121 
   122     send_mail(subject, message, "sagedays@fossee.in", [user.email])
   122     send_mail(subject, message, "sagedays@fossee.in", [user.email])
   123 
   123 
       
   124 def send_acco_confirm(user, message):
       
   125     """ take the given message and add it to main message and send the mail.
       
   126     """
   124 
   127 
       
   128     subject = "Sage Days 25, India - Accomodation arranged"
       
   129 
       
   130     main_message="""
       
   131 Dear %s %s,
       
   132 
       
   133 Your request for accomodation during Sage Days 25, India has been accepted.
       
   134 
       
   135 %s
       
   136 
       
   137 Thanking you,
       
   138 
       
   139 Sage Days India Team,
       
   140 FOSSEE, IIT Bombay.
       
   141     """%(user.first_name.title(), user.last_name.title(),message)
   125 
   142 
   126 
   143 
   127 def mail_invi(to_emails):
   144 def mail_invi(to_emails):
   128     """ send the invitation email to given email addresses.
   145     """ send the invitation email to given email addresses.
   129     """
   146     """