--- a/reg/events.py Thu Apr 15 19:19:08 2010 +0530
+++ b/reg/events.py Thu Apr 15 19:53:52 2010 +0530
@@ -41,7 +41,26 @@
""" get key from profile and send an email.
"""
- print "http://localhost:8000/reg/activate/%s"%user.get_profile().activation_key
+ activation_link = "http://localhost:8000/reg/activate/%s"%user.get_profile().activation_key
+ subject = "Activate your account"
+ message = """
+ Dear %s,
+
+ Thank you for registering at fossee.in.
+ Your are just a step away from completeing your registration.
+ Please click on the link below or open the url in your browser to activate your account.
+ %s
+
+ Please mail your queries and complaints to admin@fossee.in.
+
+ If you have not registered at fossee, please ignore this mail.
+
+ Regards,
+ FOSSEE Team
+ """%(user.get_full_name(), activation_link)
+ print message
+ send_mail(subject, message, "admin@fossee.in", [user.email])
+
def create_event(title, description, start_date, stop_date, venue, created_by=None):
""" make an event and save it.