The standards aren't all that clear but they do strongly suggest that
the 1st part of a multipart email should be the simplest, e.g. the text
part, you a specifying html 1st, this will work fine in most cases, but
some mail clients are more strict than others, I know of several which
will just show the text part form the mail below.

Flip the text/html parts round so text is first and try again, you might
be pleasantly suprised.

-----Original Message-----
From: Marcus Whitworth [mailto:[EMAIL PROTECTED] 
Sent: 05 January 2005 22:30
To: CF-Talk
Subject: Re: cfmailpart problems


Ok, not sure why that didn't display in the forum... I'll try again.

--------------------------------------------------------

<cfmail from="[EMAIL PROTECTED]" to="[EMAIL PROTECTED]"
subject="Test Mail">
        <cfmailpart charset="utf-8" type="html">
                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
                <html xmlns="http://www.w3.org/1999/xhtml";>
                <head>
                <InvalidTag http-equiv="Content-Type"
content="text/html; charset=utf-8" />
                <title>Untitled Document</title>
                </head>         
                <body>
                        <b>This is the html version...</b>
                </body>
                </html>         
        </cfmailpart>
        <cfmailpart charset="utf-8" type="text">
                This is the text version...
        </cfmailpart>
</cfmail>

----------------------------------------------------------

>From - Thu Jan 06 09:18:38 2005
X-Account-Key: account2
X-UIDL: 96f8e99f49eec938d0ad11e22bb2f7bc
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Auth-No: 
Return-Path: <[EMAIL PROTECTED]>
Received: from hummer.testserver.com.au not authenticated [203.13.2.9]
        by smtp-send.testserver.com with NetMail SMTP Agent $Revision:
1.4 $ on Linux;
        Wed, 05 Jan 2005 16:18:20 -0700
Received: from dev (testserver.com.au [203.133.10.41])
        by hummer.testserver.com.au (Postfix) with ESMTP id 41B9E19FDAF
        for <[EMAIL PROTECTED]>; Thu,  6 Jan 2005 09:18:15 +1000
(EST)
Message-ID: <[EMAIL PROTECTED]>
Date: Thu, 6 Jan 2005 09:18:23 +1000 (GMT+10:00)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Test Mail
Mime-Version: 1.0
Content-Type: multipart/alternative; 
        boundary="----=_Part_2_22403307.1104967103343"
X-Mailer: ColdFusion MX Application Server

------=_Part_2_22403307.1104967103343
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
                <html xmlns="http://www.w3.org/1999/xhtml";>
                <head>
                <InvalidTag http-equiv="Content-Type"
content="text/html; charset=utf-8" />
                <title>Untitled Document</title>
                </head>         
                <body>
                        <b>This is the html version...</b>
                </body>
                </html>         
        
------=_Part_2_22403307.1104967103343
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

                This is the text version...
        
------=_Part_2_22403307.1104967103343--





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189493
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to