[thelist] Multi-Part CFMail
Ewing, Christopher
cewing at mooremedical.com
Thu Dec 6 07:24:09 CST 2001
I'm using CF5.0 Professional server and working from samples that I've found
online to generate multi-part emails to users, but when I use these, I'm
getting the header information in the email itself instead of the html
version.
I have the following code:
<cfset MimeBoundary="--1FAEA046-E909-11D5-98A600508BB0E4E5">
<cfmail to="cewing at mooremedical.com" from="cewing at mooremedical.com"
subject="Text/HTML Email Test 3">
<cfmailparam name="MIME-Version" value="1.0">
<cfmailparam name="Content-Type" value="multipart/alternative;
boundary=#chr(34)##mimeBoundary##chr(34)#">
<cfmailparam name="Content-Transfer-Encoding" value="7bit">
--#mimeBoundary#
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
This is the Plain Text section. This <b>should not be bold</b>
--#mimeBoundary#
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<html><body>
Dude this is an HTML email.<Br>
<font color="##FF0000">This text should be red</font><br><br><br><br>
This should be 4 lines beneath the last text.<Br>
<h1>This should be a headline.</h1><br>
Please forward this back to me
</body></html>
--#mimeBoundary#--
</cfmail>
This generates an email to me that looks like:
----1FAEA046-E909-11D5-98A600508BB0E4E5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
This is the Plain Text section. This <b>should not be bold</b>
----1FAEA046-E909-11D5-98A600508BB0E4E5
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<html><body>
Dude this is an HTML email.<Br>
<font color="#FF0000">This text should be red</font><br><br><br><br>
This should be 4 lines beneath the last text.<Br>
<h1>This should be a headline.</h1><br>
Please forward this back to me
</body></html>
----1FAEA046-E909-11D5-98A600508BB0E4E5--
Any idea what I'm doing wrong?
More information about the thelist
mailing list