Changeset 820 for WAeUP_SRP/trunk/skins
- Timestamp:
- 9 Nov 2006, 21:29:25 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_default
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_default/mail2admin.py
r819 r820 5 5 ##bind script=script 6 6 ##bind subpath=traverse_subpath 7 ##parameters=fullname=None,studentid=None,email=None,probtype=None,descr=None,commt=None 7 8 ##title= 8 9 ## 10 # $Id: mai2admin.py 805 2006-11-09 09:38:29Z henrik $ 9 11 10 # the objects we need11 mship = context.portal_membership12 12 mhost = context.MailHost 13 13 prop = context.portal_properties 14 14 15 15 # the message format, %s will be filled in from data 16 16 17 message = """ 17 18 From: %s 18 19 To: %s 20 Bcc: %s 19 21 Subject: Test Email from a Student 20 22 21 Test 23 Fullname: %s 24 Student ID: %s 25 Email: %s 26 Problem Type: %s 27 Description: %s 28 Comment: %s 22 29 """ 23 30 24 31 msg = message % ( 25 32 prop.email_from_address, 26 'henrik@saoas.org', 33 'henrik@saoas.org', 34 'henrik@waeup.org', 35 fullname, 36 studentid, 37 email, 38 probtype, 39 descr, 40 commt, 27 41 ) 28 42 mhost.send(msg) 43
Note: See TracChangeset for help on using the changeset viewer.