Question Locked

Sending emails as both HTML and TXT

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Does anyone know of some "out of the box" software, or code that can be used to send emails as either HTML or TXT depending on how the recipient is going to view it? I don't want people to get 2 versions of my email...only one. I want the email to be smart enough to present HTML if someone if viewin it in Outlook, but to show them text only if they are viewing it on a PDA...

6 replies

by vabonat

Hi! Generally you never know how your email will be read. You just could "Replay in the same format as the original message" which is a setting that almost every email program has. So you'll replay (not write new one) individually formated email to every contact. In addition check your email's program address book to see if every single contact has individual setting for "Preffered email format".

by sbrown

Hi Victor - thanks for the reply, but I think you misunderstood what I need to do. I need to create emails from scratch (not replying to emails from other) that can be sent to numberous individuals on a mailing list. Because I don't know what all these people use to read their email, I need a solution that allows readers to see the email as HMTL or plain text, depending on what they're viewing the email on. I think I found some of the solution...it's to use the "Content" tag in your emails, along with plain/text and html/text in the code. I'm still trying to figure all this out, but I think I'm onto something.

by apotheon

You could always just use [url=http://www.gnu.org/software/mailman/]Mailman[/url], or something similar, if all you want is mailing list software. As long as you send emails through the list using an email client that supports multipart MIME type handling (duplexing HTML and plain text), Mailman will forward it in that form for you without any trouble.

Otherwise, if you prefer to roll your own solution, you can go with the sort of information provided at the link CaptBilly1Eye supplied in his response. Multipart MIME type handling is pretty much universally supported by email clients these days.

When in doubt, though, stick to plain text.

by sbrown

Hi Victor - thanks for the reply, but I think you misunderstood what I need to do. I need to create emails from scratch (not replying to emails from other) that can be sent to numberous individuals on a mailing list. Because I don't know what all these people use to read their email, I need a solution that allows readers to see the email as HMTL or plain text, depending on what they're viewing the email on. I think I found some of the solution...it's to use the "Content" tag in your emails, along with plain/text and html/text in the code. I'm still trying to figure all this out, but I think I'm onto something.

by captbilly1eye

Here's info on sending HTML and plain text simultaneously. Although it's a little dated, perhaps it will help.
http://tinyurl.com/yq5fo3

Of course, the best alternative is to construct separate mailing lists - one for those that prefer HTML and one for those that prefer Text Only format. Set up would require a polling of your recipients.

This discussion is closed to new replies.