Changeset 2293
- Timestamp:
- 29 Sep 2007, 18:19:07 (17 years ago)
- Location:
- WAeUP_SRP/base/skins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_default/mail2admin.py
r2271 r2293 15 15 # the message format, %s will be filled in from data 16 16 17 # message = """ 18 # From: %s <%s> 19 # To: %s 20 # Cc: %s 21 # Bcc: %s 22 # Reply-To: %s 23 # Subject: Uniben Contact 24 25 # Fullname: %s 26 # Member ID: %s 27 # Problem Type: %s 28 # Description: %s 29 # """ 30 # msg = message % ( 31 # fullname, 32 # email, 33 # prop.email_from_address, 34 # email, 35 # 'henrik@waeup.org', 36 # # 'js@aixtraware.de', 37 # email, 38 # fullname, 39 # regno, 40 # probtype, 41 # descr, 42 # ) 43 d = {} 44 d['fullname'] = fullname 45 d['email'] = email 46 d['email_from'] = prop.email_from_address 47 d['regno'] = regno 48 d['probtype'] = probtype 49 d['descr'] = descr 50 17 51 message = """ 18 From: % s <%s>19 To: % s20 Cc: % s, %s21 Bcc: %s22 Reply-To: % s52 From: %(fullname)s <%(email)s> 53 To: %(email_from)s 54 Cc: %(email)s 55 Bcc: 'henrik@waeup.org' 56 Reply-To: %(email)s 23 57 Subject: Uniben Contact 24 58 25 Fullname: % s26 Member ID: % s27 Problem Type: % s28 Description: % s59 Fullname: %(fullname)s 60 Member ID: %(regno)s 61 Problem Type: %(probtype)s 62 Description: %(descr)s 29 63 """ 30 64 31 65 #prop.email_from_address should be used for To: 32 66 33 msg = message % ( 34 fullname, 35 email, 36 prop.email_from_address, 37 email, 38 'henrik@waeup.org', 39 # 'js@aixtraware.de', 40 email, 41 fullname, 42 regno, 43 probtype, 44 descr, 45 ) 46 mhost.send(msg) 67 mhost.send(msg % d) 47 68 48 69 REQUEST = context.REQUEST -
WAeUP_SRP/base/skins/waeup_student/mail2student.py
r2261 r2293 21 21 To: %s 22 22 Cc: %s 23 Bcc: %s24 23 Reply-To: %s 25 24 Subject: %s
Note: See TracChangeset for help on using the changeset viewer.