Changeset 7407 for main/waeup.sirp/trunk/src/waeup/sirp/utils
- Timestamp:
- 20 Dec 2011, 11:05:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/utils/utils.py
r7404 r7407 99 99 100 100 101 def sendCredentials(self, applicant, password, login_url):101 def sendCredentials(self, user, password=None, login_url=None, msg=None): 102 102 """Send credentials as email. 103 103 … … 107 107 Returns True or False to indicate successful operation. 108 108 """ 109 username = applicant.applicant_id110 109 subject = 'Your SIRP credentials' 111 msg = 'You have successfully been registered for the'112 110 text = """Dear %s, 113 111 … … 130 128 from_name = config.name_admin 131 129 from_addr = config.email_admin 132 rcpt_name = applicant.display_fullname133 rcpt_addr = applicant.email130 rcpt_name = user.title 131 rcpt_addr = user.email 134 132 body = text % ( 135 rcpt_name, msg,config.name,user name,password,login_url)133 rcpt_name, msg,config.name,user.name,password,login_url) 136 134 return send_mail( 137 135 from_name,from_addr,rcpt_name,rcpt_addr,subject,body,config)
Note: See TracChangeset for help on using the changeset viewer.