[Zope] Mailhost problems (was: [Zope] (no subject))

Dieter Maurer dieter@handshake.de
Sun, 17 Sep 2000 07:27:43 +0200 (CEST)


"Suhail Murtaza" <> writes:
I have tried to reproduce your problem:

 > 1>>>#######################################################
 > <dtml-sendmail
 > mailhost="MailHost3"
 > mailto="vikas <suhail@morelinux.com>" 
 > mailfrom="suhail <suhail@morelinux.com>" >
 > Subject="<A new Snippet has been added to ZDP !>"
 > Dear Rik !
 > 
 > ...
 > </dtml-sendmail> 
 > ... sent but empty ...

This looks like a wrong "dtml-sendmail" format:
  the closing '>' of dtml-sendmail comes before "Subject",
  the empty line separating the message header from the
  body is missing.

Try:

<dtml-sendmail
mailhost="MailHost3"
mailto="vikas <suhail@morelinux.com>"
mailfrom="suhail <suhail@morelinux.com>"
subject="<A new Snippet has been added to ZDP !>">

COMMENT: Note the empty line above !!!
Dear Rik !
...
</dtml-sendmail>

Apparently, "dtml-sendmail" does not create "To" and "From" headers
from the "mailto" and "mailfrom" arguments.

Thus, you should provide them as headers.

 > .....

 > 2>>> ##################################################
 > <dtml-sendmail smtphost="hostname">
 > To:suhail@morelinux.com
 > From:vikas123@morelinux.com
 > Subject: A new test ! 
 > 
 > Dear suhail !
 > 
 > Under the following URL, a Snippet has been added:
 > 
 > Have a nice day,
 > </dtml-sendmail> 
 > ....
 > This way it is throwing an dtml method exception that
 > domain name not specified....
 > ....
 > Error type: SMTP Error
 > Error value: Recieved error code 553 from SMTP: 553 ... Domain name required
Somehow, your SMTP server is unhappy about the request.
As both your "To" and "From" contain domain names, only
"hostname" is a bit doubtfull. But there should be no
domain name necessary for it.

When I checked the "dtml-sendmail" on Zope 2.2.1, I
have been successful with:

<dtml-sendmail mailhost=MailHost>
To: dieter@localhost
From: dieter@localhost
Subject: A test

Hello
</dtml-sendmail>


Similar problems have come up some weeks ago in the mailing
list. Search the (searchable) list archive. Maybe, you
can contact the person with this problem and check whether
he was able to solve it.



Dieter