Sam,

See "RFC 2045 - Multipurpose Internet Mail Extensions (MIME) 
Part One: Format of Internet Message Bodies" as a starting 
point. The specific MIME type you're trying to do is 
multipart/alternative.

Bob


In reply to 15 Jun message from [EMAIL PROTECTED]:

>What is the proper format for the email to be sent
>having both plain and html? I was trying something
>like what I have below. Obviously it is not correct,
>can someone please tell me what lines to use 

>Server: my server
>Date: Tue, 13 Jun 2000 13:25:14 -0500
>From: Whoever
>To: whoever
>Subject: whatever
>X-Mailer: Allaire ColdFusion Application Server

>MIME-Version: 1.0
>Content-Type: text/html; charset=us-ascii
>Content-Transfer-Encoding: 7bit

>HTML Stuff Here

>MIME-Version: 1.0
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit

>Plain Text Stuff Here

>-----Original Message-----
>From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
>To: [EMAIL PROTECTED]
><[EMAIL PROTECTED]> Date: Thursday, June
>15, 2000 12:40 PM
>Subject: Re: [IMail Forum] plain txt and html e-mail
>format question 


>>> Can anyone provide me with information on html format versus plain
>>> text e-mail. Can both formats be combined into one e-mail, therefore
>>> depending on what e-mail client is reading the message that it will
>>> be read correctly.
>>
>>Yes.  Most E-mail clients that spew out HTML (sorry, I'm not an
>HTML-in-Email fan) will send both HTML and text.  It
>works by using MIME. The normal E-mail (text) is sent
>with a type of text/plain, and the HTML part is
>text/html.  The E-mail client sees this, and if it
>supports HTML, it knows not to show the text part.  If
>it doesn't know HTML, it just thinks that the HTML is
>an attachment.
>>
>>> Reading an e-mail in the web messaging that was in html is screwed
>>> up but in outlook express fine.
>>
>>It could be that the HTML that was sent was mucked up
somehow, and set up
>in a way that it assumes that it isn't going to be
>displayed in a web page, but is going to be the whole
>web page (duh!  What's the point of HTML E-mail if it
>can't be incorporated into a web page...).
>>
>>> On the flip side the plain text message doesn't convey
>>> what were trying to convey, we would like to appease everyone.
>>
>>Typically, the E-mail clients that spew out HTML will send
the same thing
>in HTML and text.  There might be an option that would
>let you send different information in text vs. HTML
>(IE 'If you are reading this, you aren't getting the
>HTML version...).
>>                             -Scott
>>Please visit http://www.ipswitch.com/support/mailing-lists.html
>>to be removed from this list.

>Please visit
>http://www.ipswitch.com/support/mailing-lists.html to
>be removed from this list.



Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

Reply via email to