Sendmail part 2: Now I get a space seperator error
Sorry to be a pain but... I changed my dtml by hard coding the "To:" list, now I get this error: SMTPDataError Error Value 501, space seperator provided without argument Here is a simplified version of the dtml I'm using: <dtml-sendmail mailhost="MailHost"> to: ssmith6@bigpond.net.au from: ozrail@bigpond.net.au subject: OzRailfan report <dtml-in dbGetRumourByID> Original report submitted by <dtml-var "pyStrip(fullname)"> at <dtml-var submissiondatetime>: <dtml-var description> </dtml-in> Follow up submitted by <dtml-var "pyStrip(fullname)"> at <dtml-var submissiondatetime>: <dtml-var description> </dtml-in> </dtml-sendmail>
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 )
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 )
Hi Steve,
I tried replacing sendmail tags with "pre" tags, and this is the resultant screen output:
Is the space below QUOTE real? If so.. it's a problem.. there should be no space between your sendmail tag and the lines of your mail header.
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!
Hmm.. everything else looks OK. The error you're seeing is coming from your SMTP server, not Zope, and it has something to do with the data you're sending.... you're doing the right things though simplify the message until it doesn't break.. then see what the last thing you took out was... and then bang your head on the table. ;-) take care, -steve
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 )
_______________________________________________ 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 )
No, it's just there for clarity. The "To: ..." line is directly below the sendmail (or "pre") tag in the dtml, and also display without a space in the output screen. Mystifying? Steve -----Original Message----- From: Steve Spicklemire [mailto:steve@spvi.com] Sent: Wednesday, March 21, 2001 11:01 PM 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 Hi Steve,
I tried replacing sendmail tags with "pre" tags, and this is the resultant screen output:
Is the space below QUOTE real? If so.. it's a problem.. there should be no space between your sendmail tag and the lines of your mail header.
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!
Hmm.. everything else looks OK. The error you're seeing is coming from your SMTP server, not Zope, and it has something to do with the data you're sending.... you're doing the right things though simplify the message until it doesn't break.. then see what the last thing you took out was... and then bang your head on the table. ;-) take care, -steve
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 )
_______________________________________________ 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 )
Hi Steve, You might try just : <dtml-sendmail .. blah blah.. > To: ssmith6@bigpond.net.au From: OzRailfan@bigpond.net.au Subject: OzRailfan report test report </dtml-sendmail> if *that* gives you an error... I'd test smtplib.py outside of Zope to make sure it works with your SMTP server (what SMTP server are you using?). -steve
"SS" == Steve Smith <ssmith6@bigpond.net.au> writes:
SS> No, it's just there for clarity. The "To: ..." line is SS> directly below the sendmail (or "pre") tag in the dtml, and SS> also display without a space in the output screen. SS> Mystifying? SS> Steve
participants (2)
-
Steve Smith -
Steve Spicklemire