dtml-sendmail
Thomas Krüger
thomas.krueger at gmx.net
Mon Aug 30 17:34:42 EDT 2004
shashaank wrote:
> --snip--
> <dtml-comment>Send email</dtml-comment>
> <dtml-try>
>
> <dtml-sendmail smtphost="MailHost" mailto="<dtml-var email>"
> mailfrom="sales at quietcare.info">
> Subject: Confirming your account.
>
> </dtml-sendmail>
> <dtml-except>
> Sorry, we could not process your email.
> <p><dtml-var error_type>: <dtml-var error_value><pre><tt>
> <dtml-var error_tb></pre;></tt></p>
> </dtml-try>
>
> --snip--
1. Don't indent the lines of the mail. All header lines must not start with
any whitespace character.
2. Using dtml syntax inside a dtml-tag will not work.
3. You need to define the mailhost.
example:
<dtml-sendmail mailhost="MailHost">
Subject: Some subject
To: <dtml-var mail>
From: somebody at somedomain.net
Some text!
</dtml-sendmail>
Thomas
More information about the Python-list
mailing list