You need to check out mime standards for e-mail.  There's a lot to
cover, but basically it's pretty simple.  Here's a simple CFMail setup
that should work: 

<cfset mimeboundary="-=_NextPart_000_0000_ABCDEF01">

<cfmail to="#attributes.to#"
      from="#attributes.from#"
      subject="#attributes.subject#"
        mailerid="Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)"

      server="X.X.X.X">
<cfmailparam name="reply-to" value="#attributes.replyto#">              
<cfmailparam name="X-msg-id" value="#message_id#">
<cfmailparam name="X-mailing-id" value="#attributes.mailing_id#">
<cfmailparam name="MIME-Version" value="1.0">
<cfmailparam name="Content-Type" value="multipart/alternative;
boundary=#chr(34)##mimeBoundary##chr(34)#"> 
This is a Multipart MIME message. 

--#mimeBoundary#
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


<cfinclude template="#attributes.text_file#">



--#mimeBoundary#
Content-Type: text/html
Content-Transfer-Encoding: 8bit

<cfinclude template="#attributes.media_file#">



--#mimeBoundary#--

</cfmail>



-----Original Message-----
From: Tipton Josh (orl1jdt) [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 26, 2002 9:53 AM
To: CF-Talk
Subject: Outlook and Cfmail


Is there anyway to send an email so that if the user has html it shows
up html formatted and if they are setup as plain text then it will only
show the plain text email?
 
Josh


______________________________________________________________________
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to