Pardeep,

Basically you need to create a multipart message.
If the client can *not* read HTML then they will see the ASCII text version
of the message.

You can create includes or you can hard code the different messages.
This should get you on your way:


<cfmail to="" from="" subject="">
<cfmailparam name="MIME-Version" value="1.0">
<cfmailparam name="Content-Type" value="multipart/alternative;
boundary=--MULTIPART_BOUNDARY">

--MULTIPART_BOUNDARY
Content-Type: text/plain; charset=us-ascii
<!--- plain text message goes here --->
<cfinclude template="message.txt">

--MULTIPART_BOUNDARY
Content-Type: text/html; charset=us-ascii

<!--- HTML formatted message goes here --->
<cfinclude template="message.html">

--MULTIPART_BOUNDARY--
</cfmail>



Joseph DeVore
VeloxWeb Technologies




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 10:35 PM
To: CF-Talk
Subject: How do u send color & text fallover emails


Need to send color and text emails, so that the recipient sees one of the
two depending upon their email client. i.e. AOL users typically cannot see
HTML emails.

Does anyone know of a good solution or tag to accomplish this. The ones on
the Allaire site so far are very buggy and don't work. Appreciate any tips.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to