[Zope] attribute error 'sendall' in sendmail tag

Cornelis J. de Brabander brabander@fsw.LeidenUniv.nl
Wed, 06 Nov 2002 09:17:42 +0100


Hi all,
I have turned to the list before about this problem, but without success. I
thought I had created a workaround, but in the end it appears I cannot do
without the sendmail tag.
I have upgraded from zope version 2.4.3 to 2.5.1. on a production server. I
can't go back so I am really stuck.
The following code in a dtml method works on 2.4.3 but produces a attribute
error with value "sendall' in 2.5.1 (traceback see below)

<dtml-sendmail smtphost="fswrul.fsw.leidenuniv.nl">
To: brabander@fsw.leidenuniv.nl
From: brabander@fsw.leidenuniv.nl
Subject: 251

groeten van 251.

</dtml-sendmail>

I have tried all kind of suggestions I received before, like removing spaces
between the headers, using the ip address in stead of names, using a
mailhost object, using mailto and mailfrom in the tag, all to no avail

Traceback (innermost last):
  File E:\zope\251\lib\python\ZPublisher\Publish.py, line 150, in
publish_module
  File E:\zope\251\lib\python\ZPublisher\Publish.py, line 114, in publish
  File E:\zope\251\lib\python\Zope\__init__.py, line 159, in
zpublisher_exception_hook
    (Object: mailtest)
  File E:\zope\251\lib\python\ZPublisher\Publish.py, line 98, in publish
  File E:\zope\251\lib\python\ZPublisher\mapply.py, line 88, in mapply
    (Object: test)
  File E:\zope\251\lib\python\ZPublisher\Publish.py, line 39, in call_object
    (Object: test)
  File E:\zope\251\lib\python\OFS\DTMLMethod.py, line 127, in __call__
    (Object: test)
  File E:\zope\251\lib\python\DocumentTemplate\DT_String.py, line 473, in
__call__
    (Object: test)
  File E:\zope\251\lib\python\Products\MailHost\SendMailTag.py, line 116, in
render
    (Object: fswrul.fsw.leidenuniv.nl)
  File E:\zope\251\lib\python\Products\MailHost\MailHost.py, line 156, in
send
    (Object: )
  File E:\zope\251\lib\python\Products\MailHost\MailHost.py, line 201, in
_send
    (Object: )
  File E:\zope\251/bin/lib\smtplib.py, line 466, in sendmail
  File E:\zope\251/bin/lib\smtplib.py, line 316, in ehlo
  File E:\zope\251/bin/lib\smtplib.py, line 247, in putcmd
  File E:\zope\251/bin/lib\smtplib.py, line 235, in send
  File <string>, line 1, in sendall
AttributeError: (see above)