summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPuneeth Chaganti2010-10-18 20:30:01 +0530
committerPuneeth Chaganti2010-10-18 20:30:01 +0530
commit51598b236c635b892ca80620a4efdd2f70e96f04 (patch)
tree392278531612716289c97354b9250f75ee0436b2
parenta36aa683a8777a5cef93b482810b00447cf7f526 (diff)
downloadscipycon-51598b236c635b892ca80620a4efdd2f70e96f04.tar.gz
scipycon-51598b236c635b892ca80620a4efdd2f70e96f04.tar.bz2
scipycon-51598b236c635b892ca80620a4efdd2f70e96f04.zip
Fixed the bug with sending the mail content post registration.
-rw-r--r--project/scipycon/registration/utils.py35
1 files changed, 20 insertions, 15 deletions
diff --git a/project/scipycon/registration/utils.py b/project/scipycon/registration/utils.py
index e7b7409..76288c3 100644
--- a/project/scipycon/registration/utils.py
+++ b/project/scipycon/registration/utils.py
@@ -8,26 +8,31 @@ def send_confirmation(registrant, event):
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,
+ }
- message.send()
+ confirmation_newuser = """Dear %(name)s,
-confirmation_newuser = """Dear %(name)s,
+Thank you, for registering for %(event_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
+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.
-Thank you for your registration! Looking forward to meet you at %(event_name)s.
+Looking forward to meet you at %(event_name)s.
Regards,
-The SciPy.in Team
+SciPy.in Team
-If you lose your password to the website please visit:
-http://scipy.in/password-reset
+If you lose your password, visit: http://scipy.in/password-reset
"""
+
+ message.body = confirmation_newuser %(details)
+
+ message.send()
+
+