Jan Papež honyc...@centrum.cz added the comment:
Did you try to use this?
q = quotedata(msg.as_string())
--
nosy: +honyczek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8050
___
R. David Murray rdmur...@bitdance.com added the comment:
See issue 10321 for a proposal to add Message support to smtplib.
--
nosy: -Allison.Vollmann
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8050
Allison Vollmann allisonv...@gmail.com added the comment:
i believe which the parameter msg must be referenced as a string type when
called sendmail nor as an MIME[Message, Multipart, Text, Base, Audio]
and this is obvious way to do it. but i'm not Dutch :-)
--
status: open - closed
R. David Murray rdmur...@bitdance.com added the comment:
On the other hand, having a facility somewhere in the stdlib to pass a Message
object to SMTP sendmail would be handy. I've made a note of this in my working
notes for email6 to see if there's something we want to do about it.
New submission from Allison Vollmann allisonv...@gmail.com:
When call SMTP.sendmail (with simple sendmail local sent and with smtp auth),
the follow exception be raised (with debug output):
send: 'mail FROM:xxx size=5\r\n'
reply: '250 2.1.0 Ok\r\n'
reply: retcode (250); Msg: 2.1.0 Ok
send:
Changes by Eric Smith e...@trueblade.com:
--
components: +Library (Lib) -Regular Expressions
type: crash - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8050
___