sdi/events.py
branchanoop
changeset 118 6c3602582f9f
parent 73 dab739f4381a
child 119 eecbb1e59a3a
equal deleted inserted replaced
117:af9472ab8f3e 118:6c3602582f9f
     2 
     2 
     3 def send_reg_complete_mail(email, first_name, last_name):
     3 def send_reg_complete_mail(email, first_name, last_name):
     4     """ send registration complete email to the registered user.
     4     """ send registration complete email to the registered user.
     5     """
     5     """
     6 
     6 
     7     subject = "Sage Days India 25 - Registration"
     7     subject = "Sage Days 25, India - Registration"
     8 
     8 
     9     message = """
     9     message = """
    10 Dear %s %s,
    10 Dear %s %s,
    11 
    11 
    12 Thank you for registering on Sage Days 25, India. Since we have limited number of seats we will be mailing you the status of your registration shortly.
    12 Thank you for registering on Sage Days 25, India. Since we have limited number of seats we will be mailing you the status of your registration shortly.
    26 Thanking you,
    26 Thanking you,
    27 
    27 
    28 Sage Days India Team,
    28 Sage Days India Team,
    29 FOSSEE, IIT Bombay.
    29 FOSSEE, IIT Bombay.
    30     """%(first_name.title(), last_name.title())
    30     """%(first_name.title(), last_name.title())
       
    31 
       
    32     send_mail(subject, message, "sagedays@fossee.in", [email])
       
    33 
       
    34 def send_wsp_ptc_confirm(user):
       
    35     """ send a mail telling that you have been selected to attend sage days.
       
    36     """
       
    37 
       
    38     subject = "Sage Days 25, India - Selected for participation"
       
    39 
       
    40     message = """
       
    41 Dear %s %s,
       
    42 
       
    43 You have been selected to attend Sage Days 25, India.
       
    44 
       
    45 Please click the link below or paste it in a browser to confirm your participation.
       
    46 http://fossee.in/sage_days/registration/cnf_sgd_ptc/%s?email=%s
       
    47 
       
    48 Please ignore this mail if you are not likely to attend Sage Days 25, India.
       
    49 
       
    50 PS:
       
    51 Your participation will be confirmed only if you visit the link above at the latest by 26 July, 2010.
       
    52 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
       
    53 
       
    54 Thanking you,
       
    55 
       
    56 Sage Days India Team,
       
    57 FOSSEE, IIT Bombay.
       
    58     """%(user.first_name.title(), user.last_name.title(), user.id, [user.email])
    31 
    59 
    32     send_mail(subject, message, "sagedays@fossee.in", [email])
    60     send_mail(subject, message, "sagedays@fossee.in", [email])
    33 
    61 
    34 def mail_invi(to_emails):
    62 def mail_invi(to_emails):
    35     """ send the invitation email to given email addresses.
    63     """ send the invitation email to given email addresses.