I would start by &quot;forcing&quot; 'text/plain'.<br>If that doesn't work maybe take a look at:<br><dl><dt><table cellpadding="0" cellspacing="0"><tbody><tr valign="baseline"><td><b><tt id="l2h-1221" id="l2h-1221" class="method">
set_type</tt></b>(</td>
  <td><var>type</var><big>[</big><var>, header</var><big>]</big><var></var><big>[</big><var>,
    requote</var><big>]</big><var></var>)</td></tr></tbody></table></dt><dd>
Set the main type and subtype for the <span class="mailheader">Content-Type:</span>
header. <var>type</var> must be a string in the form
<span class="mimetype">maintype/subtype</span>, otherwise a <tt class="exception">ValueError</tt> is
raised.

<p>
This method replaces the <span class="mailheader">Content-Type:</span> header, keeping all
the parameters in place.  If <var>requote</var> is <code>False</code>, this
leaves the existing header's quoting as is, otherwise the parameters
will be quoted (the default).

</p><p>
An alternative header can be specified in the <var>header</var> argument.
When the <span class="mailheader">Content-Type:</span> header is set a
<span class="mailheader">MIME-Version:</span> header is also added.

</p><p>

<span class="versionnote">New in version 2.2.2.</span></p></dd></dl>*************************************************************************************************************<br>Just out of curiosity, have you tested your message?
<br><span class="e" id="q_10ef2c5ddad14832_2">msg = MIMEText(message)<br>print get_content_type(message)<br><br>or:<br><br>msg = MIMEText(message, 'plain/text')<br>print get_content_type(message)<br></span>*************************************************************************************************************
<br>I'm just tossing out idea's for things I would try. I've not actually used this module yet.<br><br><br><div><span class="gmail_quote">On 11/16/06, <b class="gmail_sendername">shawn bright</b> &lt;<a href="mailto:nephish@gmail.com">
nephish@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">use&nbsp; MIMEText(message, 'someTypeThatIsn'tPlain')&nbsp; ? but type/plain is what i am after.
<br>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') ?
<br><br>thanks<br>sk<br><br><div><span class="q"><span class="gmail_quote">On 11/16/06, <b class="gmail_sendername">Chris Hengge</b> &lt;<a href="mailto:pyro9219@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
pyro9219@gmail.com</a>&gt; wrote:</span></span><div><span class="e" id="q_10ef2c5ddad14832_2"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Not sure if I'm really helping, but I want to try for all the help I've gotten...<br>I took this from: <a href="http://docs.python.org/lib/module-email.message.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://docs.python.org/lib/module-email.message.html</a>
<br>##############################################################################<br><table cellpadding="0" cellspacing="0"><tbody><tr valign="baseline"><td><b><span>class</span>&nbsp;<tt>
MIMEText</tt></b>(</td>
  <td><var>_text</var><big>[</big><var>, _subtype</var><big>[</big><var>, _charset</var><big>]</big><var></var><big>]</big><var></var>)</td></tr></tbody></table>
Module: <tt>email.mime.text</tt>

<p>
A subclass of <tt>MIMENonMultipart</tt>, the <tt>MIMEText</tt> class is
used to create MIME objects of major type <span>text</span>.
<var>_text</var> is the string for the payload.  <var>_subtype</var> is the
minor type and defaults to <span>plain</span>.  <var>_charset</var> is the
character set of the text and is passed as a parameter to the
<tt>MIMENonMultipart</tt> constructor; it defaults to <code>us-ascii</code>.  No
guessing or encoding is performed on the text data.</p><p>#############################################################################</p><p>Going off this, I'd say you need to change:</p><p>msg = MIMEText(message)&nbsp;&nbsp; <br>


</p><p>to:</p><p>msg = MIMEText(message, 'someTypeThatIsn'tPlain')&nbsp;&nbsp;&nbsp;

</p><div><span class="gmail_quote">On 11/16/06, <b class="gmail_sendername">shawn bright</b> &lt;<a href="mailto:nephish@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nephish@gmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hey there all, <br>i am using the email package and the phone provider i am trying to get a text message thru has sent me an email that says that they are looking for a tag that says 'content-type text/plain' <br><br>i have tried about everything i can think of to get it in there, but everything i have tried has failed.
<br><br>here is what i have so far:<br>address = '<a href="mailto:someplace@someplace.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">someplace@someplace.com</a>'<br>message = 'some text that needs to be delivered via text message'
<br>msg = MIMEText(message)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<br>msg['Subject'] = 'pivots'<br>msg['From'] = '<a href="mailto:l11@xit.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">l11@xit.net</a>'<br>msg['To'] = address<br>server.sendmail(msg['From'],msg['To'], 
msg.as_string())<br><br>any ideas ?<br>thanks<br>

<br>_______________________________________________<br>Tutor maillist &nbsp;- &nbsp;<a href="mailto:Tutor@python.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">


http://mail.python.org/mailman/listinfo/tutor</a><br><br><br></blockquote></div><br>

</blockquote></span></div></div><br>

</blockquote></div><br>