[Zope] Silly send mail problem

Hugo Ramos Hugo Ramos" <hugo@zopers.org
Thu, 27 Jul 2000 09:21:24 +0100


----- Original Message -----
From: <wai@mahirnet.com>
To: <zope@zope.org>
Sent: Thursday, July 27, 2000 4:56 AM
Subject: [Zope] Silly send mail problem


> Hi all,
>
> I had a sendmail problem, whenever I send out a mail from zope, it always
> contain an empty "To" ,"From" and "Subject", but I was able to get the
body
> of the mail, anyone got this problem before ??

> <dtml-sendmail
> smtphost="mail.xyz.com"
> mailto="wai@xyz.com"
> mailfrom="wai@xyz.com"
> Subject="Testing from my machine">
>
> mail body
> </dtml-sendmail>


Wrong sintax... the right one is:

<dtml-sendmail smtphost="mail.xyz.com">
To: destinationemail
From: your email
Subject: your subject
Date: <dtml-var ZopeTime fmt=rfc822>

mail body

</dtml-sendmail>


=====
Hugo Ramos - hugo@zopers.org
ZopersORG - http://www.zopers.org
=====
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!