sending mail in html AND text format ?

  • Thread starter Thread starter tdeclercq
  • Start date Start date
T

tdeclercq

HI,

I want to be sure that users receive and can read my mails.

How can I send mail in HTML AND text Format in one send ?

thx
 
You cannot do this in a single send. If you want to do this then you will have to send out two seperate emails - one in plain text format and one in HTML format

Gary
 
Easiest way to do this:

Start your message with <!--
Then display the message in plain text.
Close with -->
And begin your HTML version.

You may want to include a line of text at the end of the plain text
indicating that what follows is HTML.

The HTML comment tags will prevent it from being displayed by HTML-enabled
mail readers.

However, your non-HTML-enabled readers will display the message twice, once
as plain text in the HTML comment tags, and then the raw HTML code attached.
This annoys many such users. It would be preferable to allow the user to
store a preference for receiving HTML or plain text and only send that
version.
 
The correct way to do this is to send a Multipart MIME message. Place the
HTML version in one part, and the text version in another. Nearly every
e-mail reader can understand multipart MIME, and will only show the part
that the user is interested in.

--- Nick
 
Back
Top