[Zope] MailHost Problems

Dieter Maurer dieter@handshake.de
Sat, 14 Jul 2001 14:32:45 +0200 (CEST)


Bruce, Chris writes:
 > I am having a problem sending Mail out via MailHost.  Any ideas? The errors:
 > 
 > Error Type: TypeError
 > Error Value: len() of unsized object
 > ...
 > /usr/local/www/Zope/lib/python/Products/MailHost/MailHost.py, line 222, in
 > send (Object: MailHost) File /usr/local/lib/python2.0/smtplib.py, line 473,
 > in sendmail File /usr/local/lib/python2.0/smtplib.py, line 355, in mail File
 > /usr/local/lib/python2.0/smtplib.py, line 118, in quoteaddr File
 > /usr/local/lib/python2.0/rfc822.py, line 477, in parseaddr File
 > /usr/local/lib/python2.0/rfc822.py, line 522, in getaddrlist File
 > /usr/local/lib/python2.0/rfc822.py, line 530, in getaddress File
 > /usr/local/lib/python2.0/rfc822.py, line 510, in gotonext TypeError: (see
 > above
Apparently, it gets a strange address field, probably "None"
or an object that does not support "len".

I cannot tell you what it gets.

I would instrument "rfc822.py:510" to print "self.field" and
its type in order to understand what is going on.


Dieter