^%$#&^$@$#*(*&
Sorry...Had to get that out....

With CF 4 I had a Multi-Part header email that worked just fine.  Now, I run
in CF5 and no luck...it puts it in text only.  I have tried the cfmailparam
and now have only one content type, but it is still grabbing the first Mime
boundry and showing the entire email (HTML TO) in text format.  Both Old and
new examples included...PLEASE HELP!!!!!!!!!!!! I have a deadline of tomm.
to get this working...

Christian

old:
<cfset MIMEBOUNDRY = "----MIME-BOUNDRY----">
<cfset contenttype = "multipart/alternative; boundary="""&MIMEBOUNDRY&"""">
<cfset myHeaders = "X-Mailer: SkillPath Seminars Special Offer,
MIME-Version: 1.0">
<cfset myPlainMsgTop = "--#MIMEBOUNDRY#
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

">

<cfset myHTMLMsgTop = "--#MIMEBOUNDRY#
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

">

<cfloop query="EmailCustomers">

<cfmail to="#emailaddr#"
                from="[EMAIL PROTECTED]"
                subject="SkillPath Seminars Specail Offer!
Content-type: #contenttype#
#myheaders#">
#myPlainMsgTop#

new------------------------------------------------------------------
<cfset MIMEBOUNDRY = "----MIME-BOUNDRY----">
<cfset contenttype = "multipart/alternative; boundary="""&MIMEBOUNDRY&"""">
<cfset myHeaders = "X-Mailer: SkillPath Seminars Special Offer,
MIME-Version: 1.0">
<cfset myPlainMsgTop = "--#MIMEBOUNDRY#
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

">

<cfset myHTMLMsgTop = "--#MIMEBOUNDRY#
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

">


<cfmail query="EmailCustomers"
                group="Email"
                to="#email#"
                subject="#EcampVars.Subject#"
                from="[EMAIL PROTECTED]">
<cfMailParam name="Content-Type" value="#contenttype#">
<cfmailparam Name="X-Mailer" value="SkillPath Seminars Special Offer,
MIME-Version: 1.0">
#myPlainMsgTop#

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to