Try "ISO-8859-1" - MX seems to be a bit fussy about that in some areas.

-----Original Message-----
From: Matt Robertson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 25 March 2003 2:33 p.m.
To: CF-Talk
Subject: CFMAIL frying on content type assignment?

I could swear it didn't used to do this prior to Updater 3, but I'm not
sure.  In my cfmail messages, I set the following variable:

<cfset ContentValue="text/html; charset=" & chr(34) & "iso-8859-1"&Chr(34)>

so I can in turn plug it in to this cfmailparam:

<cfmailparam name="Content-Type" value="#variables.ContentValue#">

Fine and dandy.  Unfortunately I'm now finding this is blowing up on CFMX.
I get:

The cause of this output exception was that:
java.io.UnsupportedEncodingException: "iso-8859-1". 

Is anyone else setting cfmail content type successfully in cfmx?  Whats
everyone else doing?  Here's what a typical cfmail statement looks like:

<cfset variables.ContentValue="text/html; charset=" & chr(34) & "iso-8859-1"
& chr(34)>
<cfmail 
        to="[EMAIL PROTECTED]"
        from="[EMAIL PROTECTED]" 
        server="mail.blah.com"
        subject="blah blah blah" 
        type="HTML">
blah
<cfmailparam name="X-Mailer" value="BlahMail">
<cfmailparam name="Reply-To" value="[EMAIL PROTECTED]">
<cfmailparam name="Message-ID" value="<#CreateUUID()[EMAIL PROTECTED]>">
<cfmailparam name="Content-Type" value="#variables.ContentValue#">
<cfmailparam name="Mime-Version" value="1.0">
</cfmail>

-------------------------------------------
 Matt Robertson,     [EMAIL PROTECTED]
 MSB Designs, Inc. http://mysecretbase.com
------------------------------------------- 
             

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to