[Zope] Sendmail examples
Tony McDonald
tony.mcdonald@ncl.ac.uk
Tue, 24 Oct 2000 11:34:55 +0100
At 10:01 pm +1000 22/1/01, steve smith wrote:
>Anyone have any good, real-world examples using DTML-Sendmail tags? Would
>especially appreciate examples integrating SQL queries.
>
>Ta!
>
>Steve
>
What, you mean including ones that send mail into the future? :)
(couldn't resist).
Assuming you've set up a MailHost object called 'MailHost'
Set up a <FORM> with variables: recipient, name and comments and make
the ACTION URL the following piece of DTML (with appropriate sugar
around it)
<!--#sendmail mailhost="MailHost"-->
To: Feedback Recipient <<!--#var recipient-->>
From: Zope Feedback Form <zope_form@thoth>
Subject: Feedback from the web
Feedback from : <!--#var name-->
Comments:
<!--#var comments-->
<!--#/sendmail-->
hth
tone
------
Dr Tony McDonald, FMCC, Networked Learning Environments Project
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5116
A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope