I get this traceback when I use the sendmail tag: Error Type: TypeError Error Value: len() of unsized object Traceback (innermost last): File /home/www/zope/new/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/www/zope/new/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/www/zope/new/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook (Object: SupportManageHandler) File /home/www/zope/new/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/www/zope/new/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /home/www/zope/new/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /home/www/zope/new/lib/python/OFS/DTMLDocument.py, line 199, in __call__ (Object: index_html) File /home/www/zope/new/lib/python/DocumentTemplate/DT_String.py, line 544, in __call__ (Object: index_html) File /home/www/zope/new/lib/python/Products/MailHost/SendMailTag.py, line 189, in render (Object: MailHost) File /home/www/zope/new/lib/python/Products/MailHost/MailHost.py, line 231, in send (Object: MailHost) File /home/www/zope/new/lib/python2.1/smtplib.py, line 481, in sendmail File /home/www/zope/new/lib/python2.1/smtplib.py, line 363, in mail File /home/www/zope/new/lib/python2.1/smtplib.py, line 122, in quoteaddr File /home/www/zope/new/lib/python2.1/rfc822.py, line 475, in parseaddr File /home/www/zope/new/lib/python2.1/rfc822.py, line 520, in getaddrlist File /home/www/zope/new/lib/python2.1/rfc822.py, line 528, in getaddress File /home/www/zope/new/lib/python2.1/rfc822.py, line 508, in gotonext TypeError: (see above) Can anybody point me in the right direction? -TIA- Stephan
Stephan Göldi wrote:
I get this traceback when I use the sendmail tag: Can anybody point me in the right direction?
hard to decide without the <dtml-sendmail>-code. a tip: remove all whitespace in front of the headers... DON'T: <dtml-sendmail ...> To: foo ... </dtml-sendmail> DO: <dtml-sendmail> ... </dtml-sendmail> cheers, maik -- Maik Jablonski __o www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group Bielefeld, Germany (_)/(_) www.dzug.org
Which Zope version are you using? ----- Original Message ----- From: "Stephan Göldi" <goeldi@goeldi.com> To: <zope@zope.org> Sent: Tuesday, October 29, 2002 3:59 PM Subject: [Zope] sendmail Traceback
I get this traceback when I use the sendmail tag:
Error Type: TypeError Error Value: len() of unsized object
Traceback (innermost last): File /home/www/zope/new/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/www/zope/new/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/www/zope/new/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook (Object: SupportManageHandler) File /home/www/zope/new/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/www/zope/new/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /home/www/zope/new/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /home/www/zope/new/lib/python/OFS/DTMLDocument.py, line 199, in __call__ (Object: index_html) File /home/www/zope/new/lib/python/DocumentTemplate/DT_String.py, line 544, in __call__ (Object: index_html) File /home/www/zope/new/lib/python/Products/MailHost/SendMailTag.py, line 189, in render (Object: MailHost) File /home/www/zope/new/lib/python/Products/MailHost/MailHost.py, line 231, in send (Object: MailHost) File /home/www/zope/new/lib/python2.1/smtplib.py, line 481, in sendmail File /home/www/zope/new/lib/python2.1/smtplib.py, line 363, in mail File /home/www/zope/new/lib/python2.1/smtplib.py, line 122, in quoteaddr File /home/www/zope/new/lib/python2.1/rfc822.py, line 475, in parseaddr File /home/www/zope/new/lib/python2.1/rfc822.py, line 520, in getaddrlist File /home/www/zope/new/lib/python2.1/rfc822.py, line 528, in getaddress File /home/www/zope/new/lib/python2.1/rfc822.py, line 508, in gotonext TypeError: (see above)
Can anybody point me in the right direction?
-TIA- Stephan
_______________________________________________ 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 )
You're probably indenting within the tag: <sendmail> To: address </sendmail> Instead of: <sendmail> To: address </sendmail> It took me quite a while to work out when we had the same error! A -- Logical Progression Ltd, 3 Randolph Crescent, Edinburgh, EH3 7TH, UK Tel: +44 (0)131 466 9585 Web: http://www.logicalprogression.net/ On 29/10/02 2:59 pm, "Stephan Göldi" <goeldi@goeldi.com> wrote:
I get this traceback when I use the sendmail tag:
Error Type: TypeError Error Value: len() of unsized object
Am Die, 2002-10-29 um 18.54 schrieb Andrew Veitch:
You're probably indenting within the tag:
<sendmail> To: address </sendmail>
Instead of:
<sendmail> To: address </sendmail>
Yes, exactly this was the problem. Thank you very much! Stephan
participants (5)
-
Andrew Veitch -
Lennart Regebro -
Maik Jablonski -
Stephan Goeldi -
Stephan Göldi