Plain text email?

John Roth newsgroups at jhrothjr.com
Tue Jun 28 02:24:54 CEST 2005


"Inkiniteo" <gaz082 at gmail.com> wrote in message 
news:1119911939.179743.98220 at z14g2000cwz.googlegroups.com...
> Hi guys. I have a script that sends the info by email, but i'd like to
> avoid the convertion to HTML by the email client or Gmail, because it
> ruins all the formatting i did (with tabs, mostly). Briefing, i wanna
> be able to send SMTP mail  and the receiver only get it in plain text.

As long as your mimetype is text/plain you should have
minimal trouble. There's no way you can control what
the recipient's mail client does, however.

In particular, there are a lot of mail clients out there that
handle tabs poorly. Outlook Express is the poster child
for this: it ignores tabs completely, however it is by no
means the only culprit. It's simply the most widespread one.

In other words, use strings of spaces rather than tabs,
and you'll probably find your messages coming out
looking better.

John Roth
> 




More information about the Python-list mailing list