[Zope] sendmail tag strangeness
Scott Burton
scott@launchpoint.net
Sun, 01 Oct 2000 14:13:59 -0700
> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--MS_Mac_OE_3053254440_367021_MIME_Part
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
I have searched around about sendmail tag problems on the list and have
found similar answers to my question. However none of them work.
I have used this syntax
<dtml-sendmail mailhost="MailHost">
To: <<dtml-var recipient>>
From: <me@mydomain.com>
Subject: <Whatever>
body....
</dtml-sendmail>
I pay close attention to not having any whitespace before the To: and From:
headers.
I receive this error from multiple SMTP hosts: 503 must have sender and
recipient first
I can send an email with this syntax:
<dtml-sendmail mailhost="MailHost" mailto="you@yourdomain.com"
mailfrom="me@mydomain.com">
body...
</dtml-sendmail>
The problem is, I have to put in the recipient by hand. This method is
supposed to email a recipient after filling out a form so the recipient has
to be a variable. When I try using <dtml-var recipient> or &dtml-recipient;
or _[recipient] I still have errors or the SMTP log shows that the variable
does not get evaluated and shows up as a string of <&dtml-recipient;> as
being the recipient in the SMTP header.
Is this a bug? Is there something else I could try?
TIA
Scott B.
--MS_Mac_OE_3053254440_367021_MIME_Part
Content-type: text/html; charset="US-ASCII"
Content-transfer-encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>sendmail tag strangeness</TITLE>
</HEAD>
<BODY>
I have searched around about sendmail tag problems on the list and have fou=
nd similar answers to my question. However none of them work.<BR>
<BR>
I have used this syntax<BR>
<dtml-sendmail mailhost=3D"MailHost"><BR>
To: <<dtml-var recipient>><BR>
From: <me@mydomain.com><BR>
Subject: <Whatever><BR>
<BR>
body....<BR>
<BR>
</dtml-sendmail><BR>
<BR>
I pay close attention to not having any whitespace before the To: and From:=
headers.<BR>
<BR>
I receive this error from multiple SMTP hosts: 503 <FONT SIZE=3D"5"><FONT FAC=
E=3D"Times New Roman"><B>must have sender and recipient first <BR>
</B></FONT></FONT><FONT FACE=3D"Times New Roman"><H2><BR>
</H2></FONT> I can send an email with this syntax:<BR>
<BR>
<dtml-sendmail mailhost=3D"MailHost" mailto=3D"you@yourdomain=
.com" mailfrom=3D"me@mydomain.com"><BR>
<BR>
body...<BR>
<BR>
</dtml-sendmail><BR>
<BR>
The problem is, I have to put in the recipient by hand. This method is supp=
osed to email a recipient after filling out a form so the recipient has to b=
e a variable. When I try using <dtml-var recipient> or &dtml-recip=
ient; or _[recipient] I still have errors or the SMTP log shows that the var=
iable does not get evaluated and shows up as a string of <&dtml-recip=
ient;> as being the recipient in the SMTP header.<BR>
<FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><BR>
Is this a bug? Is there something else I could try?<BR>
<BR>
TIA<BR>
<BR>
Scott B.</FONT></FONT>
</BODY>
</HTML>
--MS_Mac_OE_3053254440_367021_MIME_Part--