"Sergey Dorofeev" <[EMAIL PROTECTED]> writes: > Hello. > > Why does not work?
[...] > m=email.message.Message() [...] > p2=email.message.Message() > p2.set_type("message/rfc822") > p2.set_payload(m) Payload is a _list_ of Message objects (is_multipart() == True) or a _string_ object (is_multipart() == False) but never just Message object. http://docs.python.org/lib/module-email.message.html -- HTH, Rob -- http://mail.python.org/mailman/listinfo/python-list