[Zope] Sendmail part 2: Now I get a space seperator error

Steve Smith ssmith6@bigpond.net.au
Wed, 21 Mar 2001 21:40:43 +1100


I tried replacing sendmail tags with "pre" tags, and this is the resultant
screen output:
QUOTE

To: ssmith6@bigpond.net.au
From: OzRailfan@bigpond.net.au
Subject: OzRailfan report

Original report submitted by Paul Michael Sherman
at 2001/03/21 22:09:58.973 GMT+10:

test report

UNQUOTE

But when I revert to the sendmail tags, I get the space seperator error
again. The screen output looks fine to me. I'm exasperated, exhausted, and
frustrated!

Steve

-----Original Message-----
From: Steve Spicklemire [mailto:steve@spvi.com]
Sent: Wednesday, March 21, 2001 12:16 AM
To: ssmith6@bigpond.net.au
Cc: zope@zope.org; steve@spvi.com
Subject: Re: [Zope] Sendmail part 2: Now I get a space seperator error



Hmm.. I'd be tempted to replace

<dtml-sendmail .. >
...
</dtml-sendmail>

with

<pre>
...
</pre>

to see what you're really rendering. From smptlib.py:

    def data(self,msg):
        """SMTP 'DATA' command -- sends message data to server.

        Automatically quotes lines beginning with a period per rfc821.
        Raises SMTPDataError if there is an unexpected reply to the
        DATA command; the return value from this method is the final
        response code received when the all data is sent.
        """

-steve

>>>>> "Steve" == Steve Smith <ssmith6@bigpond.net.au> writes:

    Steve> Sorry to be a pain but...

    Steve> I changed my dtml by hard coding the "To:" list, now I get
    Steve> this error:

    Steve> SMTPDataError Error Value 501, space seperator provided
    Steve> without argument

    Steve> Here is a simplified version of the dtml I'm using:

    Steve> <dtml-sendmail mailhost="MailHost"> to:
    Steve> ssmith6@bigpond.net.au from: ozrail@bigpond.net.au subject:
    Steve> OzRailfan report

    Steve> <dtml-in dbGetRumourByID>

    Steve> Original report submitted by <dtml-var "pyStrip(fullname)">
    Steve> at <dtml-var
    submissiondatetime> :

    Steve> <dtml-var description> </dtml-in>

    Steve> Follow up submitted by <dtml-var "pyStrip(fullname)"> at
    Steve> <dtml-var
    submissiondatetime> :

    Steve> <dtml-var description> </dtml-in>

    Steve> </dtml-sendmail>


    Steve> _______________________________________________ Zope
    Steve> maillist - Zope@zope.org
    Steve> http://lists.zope.org/mailman/listinfo/zope ** No cross
    Steve> posts or HTML encoding!  ** (Related lists -
    Steve> http://lists.zope.org/mailman/listinfo/zope-announce
    Steve> http://lists.zope.org/mailman/listinfo/zope-dev )