Well since you're on 6.1 now, just use the new tag <cfmailpart> it makes creating multipart emails much easier. See the docs on it here http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-pb3.htm
Take care, Daniel Elmore -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Colin Wilson Sent: Friday, December 19, 2003 6:59 PM To: [EMAIL PROTECTED] Subject: cfmail mime issue Hi everyone, My host just made some updates to CFMX 6.1 and now I'm having troubles with one of the scripts I was using for a mime text/html encoded email. I think someone on this message list provided the code once.. It works fine on CF 4.5 and 5 but isn't working on 6.1. When I take out the three first two mailparam lines and the associated boundary and content lines it works fine. Any suggestions for resources would be much appreciated. ======================================================================== ========== <cfset boundary = CreateUUID()> <cfset randID = CreateUUID()> <cfset todayDate = #Now()#> <cfhttp url="www.mountwashington.ca/admin/media/send-release.cfm?prID=#prID#" method=get> </cfhttp> <!--- start of mail production ---> <cfmail to="[EMAIL PROTECTED]" from="me <[EMAIL PROTECTED]>" subject="my subject" > <cfmailparam name="MIME-Version" value="1.0"> <cfmailparam name="Content-type" value="multipart/alternative; boundary=""#boundary#"""> <cfmailparam name="message-ID" value="<#randID##timeformat(todayDate, "hhmmss")[EMAIL PROTECTED]>"> <!--- DO NOT INDENT ---> --#boundary# Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Please see our website for the current release. http://www.me.com/myrelease.cfm --#boundary# Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit #cfhttp.FileContent# --#boundary#-- <!--- DO NOT INDENT ---> </cfmail> <!--- end of mail production ---> ======================================================================== ========== Here is the error I get: ======================================================================== ========== An exception occurred when setting up mail server parameters. This exception was caused by: java.lang.NullPointerException. The error occurred in D:\home\LEE337\admin\subscribers\send_mailout.cfm: line 44 42 : Content-Transfer-Encoding: 7bit 43 : #cfhttp.FileContent# 44 : --#boundary#-- 45 : <!--- DO NOT INDENT ---> 46 : </cfmail> ======================================================================== ========== Thanks for any suggestions Colin Wilson ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To unsubscribe: Send UNSUBSCRIBE to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To unsubscribe: Send UNSUBSCRIBE to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org
