[Zope] MailHost and 2.6.0

Lennart Regebro lennart@torped.se
Sun, 27 Oct 2002 10:35:20 +0100


> Module Products.MailHost.MailHost, line 125, in send
> TypeError: _send() takes exactly 3 arguments (4 given)
>
> Can anyone shed some light on this?

Not really, no. _send() in 2.6.0 takes exactly 4 arguments, so how you can
get an error claiming _send() takes exactly 3 arguments is totally beyond
me.

> Looking at line 125 of MailHost.py you get this...
>         self._send(mfrom, mto, messageText)
>
> Whereas on the 2.5.1 version you get this (after much header
manipulations),
>         self._send( headers, messageText )

Yes, this is correct. The interface of _send() has changed. Since this is
only used by MailHost itself, it doesn't affect how you use MailHost. send()
hasn't changed, so the public interfaces are exactly the same.

Best Regards

Lennart Regebro
Torped Strategi och Kommunikation AB

(ps I'm not on the zope@zope.org mailinglist, so if anybody is going to
reply, please cc me).