[Zope] Re: Bug in sendmail tag?

myzope@softhome.net myzope@softhome.net
Mon, 14 Oct 2002 13:58:11 +0200


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

Cheers