## Script (Python) "mail2admin" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##title= ## # the objects we need mship = context.portal_membership mhost = context.MailHost prop = context.portal_properties # the message format, %s will be filled in from data message = """ From: %s To: %s Subject: Test Email from a Student Test """ msg = message % ( prop.email_from_address, 'henrik@saoas.org', ) mhost.send(msg)