Hello all, I have zope 2.1.6 and the following code returns an smtp error 553 (domain name required): <dtml-in select_Get_Account> (the select statement *is* returning the correct account) <dtml-sendmail mailhost="MailHost"> To: <dtml-var account> From: <do_not_reply@somebodycom> Subject: Mailing Back Password Your password is <B><dtml-var passwd></B>. Thank you for shopping at sombody! </dtml-sendmail> Your password has been mailed to <dtml-var account>. <dtml-else> blah blah blah </dtml-in> When checking the mail logs, the smtp server is getting no From or To information. If I use "mailfrom" in the dtml-sendmail tag, I get smtp error 503 (receipt required). Any ideas? -- Mike Mikkelsen mikk@microbsys.com Micro Business Systems http://microbsys.com Fresno Linux Users Group http://linux.fresno.ca.us It's all GNU to me!
In article <00053110520501.00668@mikk.microbsys.com>, Mike Mikkelsen <mikk@microbsys.com> writes
<dtml-in select_Get_Account> (the select statement *is* returning the correct account) <dtml-sendmail mailhost="MailHost"> To: <dtml-var account> From: <do_not_reply@somebodycom> Subject: Mailing Back Password
Your password is <B><dtml-var passwd></B>.
Thank you for shopping at sombody! </dtml-sendmail>
Your password has been mailed to <dtml-var account>. <dtml-else> blah blah blah </dtml-in>
Try removing all whitespace before the headers To: ,From: -- Regards, Graham Chiu gchiu<at>compkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope
<untested> Isn't it supposed to be: To: Nameof Persontosendto <name@server.com> Instead of: To: <dtml-var account> </untested> This can be used in conjunction with variables; for example: <dtml-call "REQUEST.set('name','Name Person')"> <dtml-call "REQUEST.set('email','name@person.com')"> <sendmail> To: <dtml-var name> <<dtml-var email>> </sendmail> I use that on my Zope site, and it works fine. ----- Original Message ----- From: Graham Chiu <anon_emouse@hotmail.com> To: <zope@zope.org> Sent: Wednesday, May 31, 2000 8:11 PM Subject: Re: [Zope] mailhost problem
In article <00053110520501.00668@mikk.microbsys.com>, Mike Mikkelsen <mikk@microbsys.com> writes
<dtml-in select_Get_Account> (the select statement *is* returning the correct account) <dtml-sendmail mailhost="MailHost"> To: <dtml-var account> From: <do_not_reply@somebodycom> Subject: Mailing Back Password
Your password is <B><dtml-var passwd></B>.
Thank you for shopping at sombody! </dtml-sendmail>
Your password has been mailed to <dtml-var account>. <dtml-else> blah blah blah </dtml-in>
Try removing all whitespace before the headers To: ,From: -- Regards, Graham Chiu gchiu<at>compkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Graham Chiu -
Mike Mikkelsen -
peter be