[Zope] dtml-sendmail gotcha

Donald G Porter dgp@cam.nist.gov
Wed, 19 Jan 2000 16:13:35 -0500 (EST)


Here's a challenge.  What's wrong with the following DTML snippet?

<dtml-sendmail mailhost="MailHost">
To: <dtml-var email>
From: Example.Net <WebStaff@example.net>
Subject: Joining Example.Net

To complete your registration with Example.Net (blah blah...)

</dtml-sendmail>

On my Zope site I had a similar DTML snippet, and it refused to
send the mail message, but it also gave no error message that I
could see, so debugging it took a ***long*** time.  Do you see
the problem?

Here's what worked for me:

<dtml-sendmail mailhost="MailHost">
To: <dtml-var email>
From: "Example.Net" <WebStaff@example.net>
Subject: Joining Example.Net

To complete your registration with Example.Net ...

</dtml-sendmail>

Those double quotes can make a world of difference.  I'm posting this
to the Zope mailing list in the hope that it will keep others out
of this blind alley which cost me so much time and frustration.  Good
thing my site is for fun and not for profit!

Don Porter