Closed namn closed 13 years ago
This is a combination of two problems: first, is that the _load
method of Delivery assumes non-strings to be instantiated objects; changing this to marrow.util.compat.basestring
resolves this, though passing a bytes
value in 3.x will remain an error.
Additionally, Python 2.x's built-in network libraries require string values for things like host and username/password, wrapping the configuration loading lines in marrow.mailer.transport.smtp.SMTPTransport.__init__
in marrow.util.compat.native
resolves this and should protect against using bytes
values in Python 3.x as well.
This code throws a TypeError: