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
In article <zKKH+LA9D2U4Ew+c@compkarori.com>, Graham Chiu <anon_emouse@hotmail.com> writes
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.
Okay, sussed it out eventually. There seems to be a bug or undocumented requirement in doing it this way. There can be no leading spaces in front of the To: header line. ------- Regards, Graham Chiu gchiu<at>compkarori.co.nz http://www.compkarori.com/dynamo - The Homebuilt Dynamo http://www.compkarori.com/dbase - The dBase bulletin
participants (1)
-
Graham Chiu