FAQ

Lie Ryan wrote:
You can set MIME type and encoding from the MIME constructor
email.mime.Text.MIMEText("<b>Bold Text</b>", "html", "utf-8")
are you importing "import mime" or "import email.mime" or "import
email.MIMEMultipart"?
Hi Lie.
I was importing as,
'from email.mime.text import MIMEText' which was returning that error
because I don't have
a mime subdir in my /usr/lib64/python2.4/email/ as I was expecting.

'import email.MIMEMultipart' worked perfectly (the mime methods are in
the /email/ root).
I'll try to redo my script right after I get some urgent things done.

Thanks :)

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 11 of 11 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedDec 9, '09 at 2:59p
activeDec 11, '09 at 3:22p
posts11
users5
websitepython.org

People

Translate

site design / logo © 2022 Grokbase