Minor changes to the content of post-registration email.
authorPuneeth Chaganti <punchagan@fossee.in>
Mon, 18 Oct 2010 23:29:05 +0530
changeset 175 a51d2b6e9a78
parent 173 d1e03263a317 (current diff)
parent 174 ccd1a896dfea (diff)
child 176 6a95fa45edf2
Minor changes to the content of post-registration email.
--- a/project/scipycon/registration/utils.py	Mon Oct 18 19:35:33 2010 +0530
+++ b/project/scipycon/registration/utils.py	Mon Oct 18 23:29:05 2010 +0530
@@ -8,26 +8,31 @@
     message.from_email = u'admin@scipy.in'
     message.to = [registrant.email]
 
-    username = registrant.username
-    all = {'name': registrant.get_full_name(),
-           'username': username,
-           'event_name': event.get_full_name(),
-           'event_scope': event.scope,
-           }
+    details = {'name': registrant.get_full_name(),
+               'username': registrant.username,
+               'password': registrant.password,
+               'event_name': event.get_full_name(),
+               'event_scope': event.scope,
+            }
+
+    confirmation_newuser = """Dear %(name)s,
+
+Thank you, for registering for %(event_name)s!
+
+You may log in to the %(event_name)s website at
+http://scipy.in/%(event_scope)s/login using the username -
+%(username)s and the password - %(password)s.
+
+Looking forward to meet you at %(event_name)s.
+
+Regards,
+SciPy.in Team
+
+If you lose your password, visit: http://scipy.in/password-reset
+"""
+
+    message.body = confirmation_newuser %(details)
 
     message.send()
 
-confirmation_newuser = """Dear %(name)s,
 
-Welcome to %(event_name)s. You have registered for %(event_name)s with the
-username %(username)s. You may log in to the %(event_name)s website at
-http://scipy.in/%(event_scope)s/login using the given username
-
-Thank you for your registration! Looking forward to meet you at %(event_name)s.
-
-Regards,
-The SciPy.in Team
-
-If you lose your password to the website please visit:
-http://scipy.in/password-reset
-"""