source: WAeUP_SRP/trunk/skins/waeup_default/mail2admin.py @ 826

Last change on this file since 826 was 825, checked in by Henrik Bettermann, 18 years ago

member id will be always transmitted

File size: 898 bytes
Line 
1## Script (Python) "mail2admin"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=fullname=None,regno=None,email=None,probtype=None,descr=None,commt=None
8##title=
9##
10# $Id: mai2admin.py 805 2006-11-09 09:38:29Z henrik $
11
12mhost = context.MailHost
13prop = context.portal_properties
14
15# the message format, %s will be filled in from data
16
17message = """
18From: %s <%s>
19To: %s
20Bcc: %s, %s
21Reply-To: %s
22Subject: WAeUP Contact Form
23
24Fullname: %s
25Member ID: %s
26Problem Type: %s
27Description: %s
28Comment: %s
29"""
30
31#prop.email_from_address should be used for To:
32
33msg = message % (
34     fullname,
35     email,
36     'henrik@saoas.org',
37     'henrik@waeup.org',
38     'js@aixtraware.de',
39     email,
40     fullname,
41     regno,
42     probtype,
43     descr,
44     commt,
45     )
46mhost.send(msg)
Note: See TracBrowser for help on using the repository browser.