reg/events.py
changeset 58 a26c82f593f0
parent 46 ff5f34e42aec
child 59 01638380207c
equal deleted inserted replaced
57:d321a507fc26 58:a26c82f593f0
    39 
    39 
    40 def send_activation(user):
    40 def send_activation(user):
    41     """ get key from profile and send an email.
    41     """ get key from profile and send an email.
    42     """
    42     """
    43 
    43 
    44     print "http://localhost:8000/reg/activate/%s"%user.get_profile().activation_key
    44     activation_link = "http://localhost:8000/reg/activate/%s"%user.get_profile().activation_key
       
    45     subject = "Activate your account"
       
    46     message = """
       
    47     Dear %s,
       
    48 
       
    49     Thank you for registering at fossee.in.
       
    50     Your are just a step away from completeing your registration.
       
    51     Please click on the link below or open the url in your browser to activate your account.
       
    52     %s
       
    53 
       
    54     Please mail your queries and complaints to admin@fossee.in.
       
    55 
       
    56     If you have not registered at fossee, please ignore this mail.
       
    57 
       
    58     Regards,
       
    59     FOSSEE Team
       
    60     """%(user.get_full_name(), activation_link)
       
    61     print message
       
    62     send_mail(subject, message, "admin@fossee.in", [user.email])
       
    63 
    45 
    64 
    46 def create_event(title, description, start_date, stop_date, venue, created_by=None):
    65 def create_event(title, description, start_date, stop_date, venue, created_by=None):
    47     """ make an event and save it.
    66     """ make an event and save it.
    48     """
    67     """
    49 
    68