Rob Wolfe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
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.
1.
Sergey Dorofeev wrote:
Rob Wolfe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
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
Hello.
Why does not work?
--
import email.message
import smtplib
import time
m=email.message.Message()
m.set_type(multipart/mixed)
m[From]=Sergey Dorofeev [EMAIL PROTECTED]
m[To]=Sergey Dorofeev [EMAIL PROTECTED]
m[Date]=time.asctime()
m[Subject]=test
p1=email.message.Message()
At Wednesday 24/1/2007 13:02, Sergey Dorofeev wrote:
Why does not work?
Some details please?
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni
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() ==