Well, hopefully not too many people post this. I personally don't use this anymore, and stick with the IMS-SE mail server for all my mail delivery. (www.coolfusion.com). Using IMS you can do better multipart emails in one line of code. You do have to own the IMS-SE mailserver but it is very resonably priced and well worth it for the additional features and reliability over cfmail....
<cfset textbody="your text body"> <cfset textbody="your html body"> <cfset subject="your subject line"> <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="[EMAIL PROTECTED]" From="mydomain.com<[EMAIL PROTECTED]>" 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 06:10 PM 13/08/02 -0700, you wrote: >Thanks Brook, > >That is the first thing I tried - I could not find it. >I know I have seen it on the list, and am now kicking myself for not >saving it. > >Kirk > >-----Original Message----- >From: Brook Davies [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, August 13, 2002 6:24 PM >To: CF-Talk >Subject: Re: SOT: Multi-Part Email from CF > > >Search the archives here >http://www.mail-archive.com/[email protected]/ >, this code has been posted many,many times.... > >At 06:01 PM 13/08/02 -0700, you wrote: > >Does anyone have some instructions or sample code to help me figure out > >how to send out multi-part email messages in both plain text and html from > >cfmail? > > > >Thanks > > > >Kirk > > > > ______________________________________________________________________ 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

