Try this: <cfset recipient="[EMAIL PROTECTED]"> <cfset from ="Bob Dole <[EMAIL PROTECTED]>"> <cfset subject="Email Test">
<cfset textbody="mytextmessage"> <cfset htmlbody="<h2>myhtmlmessage</h2>"> <cfset crlf = chr(13)&chr(10)> <CFSET MIMEBOUNDARY = "----MIME-BOUNDARY----"> <CFSET contenttype = "multipart/alternative;boundary="""&MIMEBOUNDARY&""""> <CFSET myHeaders = "X-Mailer: My Mailer, MIME-Version: 1.0"> <CFSET myPlainMsgTop = "--#MIMEboundary##crlf#Content-Type: text/plain; charset=us-ascii#crlf#Content-Transfer-Encoding: 7bit#crlf##crlf#"> <CFSET myHTMLMsgTop = "--#MIMEboundary##crlf#Content-Type: text/html; charset=us-ascii#crlf#Content-Transfer-Encoding: 7bit#crlf##crlf#"> <!--- Send the messages ---> <CFMAIL To="#recipient#" From="#from#" Subject="#subject#"> <!--- Sean: <cfmailparam> ---> <cfmailparam name="Content-type" value="#contenttype#"> <cfmailparam name="MIME-Version" value="1.0"> #myPlainMsgTop# <!--- begin plain text version ---> #textbody# #myHTMLMsgTop# <!--- begin html version ---> #htmlbody# </cfmail> At 09:52 AM 26/07/02 -0400, you wrote: >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 > > ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm 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

