You can send mixed-mode messages:
<!--- Create a unique ID for the message boundary. --->
<cfset boundary = CreateUUID()>
<!--- Standard CFMAIL.. Note that the TYPE attribute is not set. --->
<cfmail to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]"
subject="test"> <cfmailparam name="Content-Type"
value="multipart/alternative; boundary=""#boundary#"""> --#boundary#
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
This is the plain text message for the email. HTML readers will not see
this. That is all. End of message
--#boundary#
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<title>HTML Message</title>
</head>
<body>
This is the <font size="+2" color="##FF0000">HTML text message</font>
for the email. This will not be seen with a plain text reader. </body>
</html>
--#boundary#--
</cfmail>
---
Billy Cravens
-----Original Message-----
From: Dowdell, Jason G [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 1:34 PM
To: CF-Talk
Subject: RE: ColdFusion based mass email module
Justin,
Do you have to do anything special if it's an html formatted
message? Is there a failover in case the client's email client
does not render html?
Thanks,
jason
-----Original Message-----
From: Justin Scott [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 9:57 AM
To: CF-Talk
Subject: Re: ColdFusion based mass email module
> That sounds very interesting. Could you include a code
> snippet or example to show me how to do what you're
> proposing. I'm not sure the host will allow it but it's
> definitely worth looking into.
I don't know what your clear_newsletter.cfm file does, but here's a
sample
of the IIS SMTP dump code:
--[ snip ]--
<cfoutput query="queryname" group="email_address">
<cffile action="write"
file="c:\inetpub\mailroot\pickup\#createuuid()#.txt"
output="Content-type: text/plain
Date: #dateformat(now(), "ddd, d mmm yyyy")# #timeformat(now(),
"HH:mm:ss")# -0500
To: #queryname.email_address#
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Subject: Subject Would Go Here
This is a message being sent to you by...
">
</cfoutput>
--[ snip ]--
Note that you will need to change the GMT offset in the time to the
correct
value. The Reply-To header is not needed, but I use that to store a
contact
address and use a system address (which sends things into null) for the
From
address so I don't get thousands of delivery errors and autoresponders
in my
regular mailbox. I hope this helps a little.
-Justin Scott, Lead Developer
Sceiron Internet Services, Inc.
http://www.sceiron.com
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists