[Zope] Re: Bug in sendmail tag?
Cornelis J. de Brabander
brabander@fsw.LeidenUniv.nl
Mon, 14 Oct 2002 14:07:00 +0200
Hi
----- Original Message -----
From: <myzope@softhome.net>
To: <Zope@zope.org>
Sent: Monday, October 14, 2002 1:58 PM
Subject: [Zope] Re: Bug in sendmail tag?
> Hello,
>
>
> Cornelis J. de Brabander wrote:
>
> >> I'm stuck with the following code. In zope 2.5.1 this code results in
an
> >> attribute error with error value 'sendall'. In zope 2.4.3 it works.
I've
> >> noticed there are differences in smtplib.py between the two versions.
But
> >> the code I use is correct according two the DTML Reference. Is this a
bug?
>
> >> <dtml-sendmail mailhost="MailHost">
> >> To: 'brabander@fsw.leidenuniv.nl'
> >> From: 'brabander@fsw.leidenuniv.nl'
> >> Subject: 'foo'
>
> [...]
> > You were right about the quotes, so I removed them (actually I adapted
the
> > code from a more complex situation). Furthermore I changed the mailhost
> > object to the actual IP-address and tried this both in 243 and 251.
Works in
> > 243, but fails in 251 with the same error and traceback (above).
> > I'm puzzled.
>
>
> This could be off, but have you tried removing the spaces between
> <To:>, <From:> and <Subject:> and what follows on the respective
> lines:
>
> To:brabander@fsw.leidenuniv.nl
>
I had not, but now I have, however, to no avail. I still get an attribute
error with error value 'sendall'. So, still stuck along this road. Thanks,
anyway.
cb