[Zope] dtml-sendmail problems

Graham Chiu anon_emouse@hotmail.com
Sun, 12 Dec 1999 20:46:53 +1200


When I use the smtp host as in

<dmtl-sendmail smtphost="mail.whatever.com" mailto=someone@where.com
mailfrom=me@whatever.com subject="this is the subject>

body
</dtml-sendmail>

Then the mail gets sent, but the subject line never appears in the email
sent.  I also can't include a variable in the mailto parameter.

If I send it this way instead ...

<dmtl-sendmail smtphost="mail.whatever.com">
To: <<dtml-var EMAIL>>
From: <me@whatever.com>
Subject: "this is the subject"

body
</dtml-sendmail>

then I get the following error - spelling mistake and all

Recieved error code 553 from SMTP: 553 ... Domain name required.

This error also appears if I use the mailhost object.  The final three
lines in the traceback are:


  File F:\Zope2\lib\python\Products\MailHost\MailHost.py, line 209, in
send
    (Object: )
  File F:\Zope2\lib\python\Products\MailHost\MailHost.py, line 291, in
send
  File F:\Zope2\lib\python\Products\MailHost\MailHost.py, line 284, in
_check
SMTP Error: (see above)



-------
Regards,        Graham Chiu
gchiu<at>compkarori.co.nz
http://www.compkarori.com/dynamo - The Homebuilt Dynamo
http://www.compkarori.com/dbase - The dBase bulletin