Re: [Tutor] email content-type: text/plain

2006-11-16 Thread shawn bright
ok, will try this out tomorrow at work. thanks. sk On 11/16/06, Python <[EMAIL PROTECTED]> wrote: On Thu, 2006-11-16 at 15:57 -0600, shawn bright wrote: > use MIMEText(message, 'someTypeThatIsn'tPlain') ? but type/plain is > what i am after. > i am a bit confused here. It defaults to plain,

Re: [Tutor] email content-type: text/plain

2006-11-16 Thread Python
On Thu, 2006-11-16 at 15:57 -0600, shawn bright wrote: > use MIMEText(message, 'someTypeThatIsn'tPlain') ? but type/plain is > what i am after. > i am a bit confused here. It defaults to plain, but there is not > anything in the message headers that say what type it is. Should i use > MIMEText(me

Re: [Tutor] email content-type: text/plain

2006-11-16 Thread Chris Hengge
Just so you can compare... msg = MIMEText.MIMEText("How are you!?") email.Message.Message.get_content_type(msg) 'text/plain' On 11/16/06, Chris Hengge <[EMAIL PROTECTED]> wrote: I would start by "forcing" 'text/plain'. If that doesn't work maybe take a look at: * set_type*( type[, header][,

Re: [Tutor] email content-type: text/plain

2006-11-16 Thread Chris Hengge
I would start by "forcing" 'text/plain'. If that doesn't work maybe take a look at: *set_type*( type[, header][, requote]) Set the main type and subtype for the Content-Type: header. type must be a string in the form maintype/subtype, otherwise a ValueError is raised. This method replaces the Con

Re: [Tutor] email content-type: text/plain

2006-11-16 Thread shawn bright
use MIMEText(message, 'someTypeThatIsn'tPlain') ? but type/plain is what i am after. i am a bit confused here. It defaults to plain, but there is not anything in the message headers that say what type it is. Should i use MIMEText(message, 'text/plain') ? thanks sk On 11/16/06, Chris Hengge <[E

Re: [Tutor] email content-type: text/plain

2006-11-16 Thread Chris Hengge
I just re-read your email, and I dont think I answered it accurately since you apparently want plain... so maybe you can still use my example for "force" the type? On 11/16/06, Chris Hengge <[EMAIL PROTECTED]> wrote: Not sure if I'm really helping, but I want to try for all the help I've gotten

Re: [Tutor] email content-type: text/plain

2006-11-16 Thread Chris Hengge
Not sure if I'm really helping, but I want to try for all the help I've gotten... I took this from: http://docs.python.org/lib/module-email.message.html ## *class MIMEText*( _text[, _subtype[, _charset]]) Module: email.mim