Well unfortunately I couldn't get the code that Bob posted to work, but after doing some digging, and many tests, I finally got this code to work as found at: http://cfhub.com/forum/index.cfm?FuseAction=Thread&TopicID=962&CFID=50513&CFTOKEN=2609387
-------BEGIN CODE------- <cfset crlf = chr(13)&chr(10)> <!--- Send the messages ---> <CFMAIL To="[EMAIL PROTECTED]" From="[EMAIL PROTECTED]" Subject="test 8-1"> <cfmailparam name="Content-type" value='multipart/alternative;boundary="----MIME-BOUNDARY----"'> <cfmailparam name="MIME-Version" value="1.0"> ------MIME-BOUNDARY----#crlf#Content-Type: text/plain; charset=us-ascii#crlf#Content-Transfer-Encoding: 7bit#crlf##crlf# <!--- begin plain text version ---> Test ------MIME-BOUNDARY----#crlf#Content-Type: text/html; charset=us-ascii#crlf#Content-Transfer-Encoding: 7bit#crlf##crlf# <!--- begin html version ---> <h1>Test</h1> <p> <font color=red> Test </font> </p> </cfmail> -------END CODE------- Thank You, Laurie Rose ShopStiX Inc. (416) 635-5448 http://www.shopstix.com <- Canada's Premier Internet Shopping Experience http://www.shopstixmall.com <- Build your online store in only a few clicks! http://www.shopstix.net/forums <- SX:Forums - your ColdFusion community solution > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of charlie arehart > Sent: January 13, 2002 5:19 PM > To: [EMAIL PROTECTED] > Subject: RE: [CFTALKTor] Multipart Emailing > > > That's great info, Bob. Thanks. The CF docs for the new CFMAILPARAM tag > didn't indicate this possibility. Laurie, if this works for you, > please let > us all know. > > /charlie > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Bob Silverberg > Sent: Sunday, January 13, 2002 2:16 PM > To: [EMAIL PROTECTED] > Subject: RE: [CFTALKTor] Multipart Emailing > > > I haven't done this, but I recall reading about it on another > mailing list. > You need to create your own boundaries within the email to create > different > versions. > > Below is an email that I found in a list archive, which describes > how to do > this. Let us know if it works for you. > > ----- begin attachment ----- > > One more experienced than I posted this once: I believe his name is Seth > Bienek > > Here's the commented code -- > > <!--- 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"> > <!--- This message is going to be a multipart message. Since an email is > really just a really long string of text, we need a unique > substring to use > as a seperator between the parts. Just to make sure that a seperator > doesn't accidentally get typed in, I like to use a UUID - the odds of this > exact string accidentally coming through in an email would be extremely > rare. The mailparam tag will insert the value of the seperator into the > mail header, as well as telling the email client that this message is > composed of more than one part. ---> > <cfmailparam name="Content-Type" value="multipart/alternative; > boundary=""#boundary#"""> > <!--- Boundaries are always preceded by "--". Each part of a multi-part > message is preceded by a boundary. The boundary value MUST match > the value > set in the header. ---> > --#boundary# > <!--- Each section of the email gets it's own mini-header. This header > tells the mail client what kind of data follows (plain text, 8 > bit, in this > case), and is always seperated from the content that follows by one empty > line. ---> > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: 8bit > > This is the plain text message for the email. > <!--- Every section gets a header, and every header begins with the same > exact Boundary value. ---> > --#boundary# > <!--- Modern mail clients that support HTML email will ignore a plain text > section of an email if there is also an HTML section. Note the empty line > between the secion header and the content that follows it. ---> > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > <!--- HTML formatted emails should generally be treated the same as html > pages. Javascript is not allowed, however. The "title" tags are not > supported in most mail readers, but should be used anyway. ---> > <html> > <head> > <title>HTML Message</title> > </head> > <body> > This is the HTML text message for the email. > </body> > </html> > <!--- the final boundary is always followed by two hyphens. This > is how the > email client knows that the message is complete, and not to expect another > section. ---> > --#boundary#-- > </cfmail> > > ----- end attachment ----- > > Good luck, > Bob > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > > Behalf Of Guy McDowell > > Sent: Monday, 14 January 2002 7:50 a.m. > > To: [EMAIL PROTECTED] > > Subject: Re: [CFTALKTor] Multipart Emailing > > > > > > I haven't come across a way to do this. An option might be to > > have users let > > you know when they register with you whether they want HTML or > plain text. > > > > HTH, > > Guy McDowell > > > > > > >From: "Laurie Rose" <[EMAIL PROTECTED]> > > >Reply-To: [EMAIL PROTECTED] > > >To: <[EMAIL PROTECTED]> > > >Subject: [CFTALKTor] Multipart Emailing > > >Date: Sat, 12 Jan 2002 00:00:01 -0500 > > > > > >Is there anyway to send out multipart emails using CFMAIL so > that if the > > >mail > > >client supports HTML, and HTML email would be displayed, > > otherwise a plain > > >text email would be displayed. > > > > > >Thank You, > > >Laurie Rose > > >ShopStiX Inc. > > >(416) 635-5448 > > >http://www.shopstix.com <- Canada's Premier Internet Shopping > Experience > > >http://www.shopstixmall.com <- Build your online store in only a few > > >clicks! > > >http://www.shopstix.net/forums <- SX:Forums - your ColdFusion community > > >solution > > >- > > >You are subscribed to the CFUGToronto CFTALK ListSRV. > > >This message has been posted by: "Laurie Rose" <[EMAIL PROTECTED]> > > >To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ > > >Manager: Kevin Towes ([EMAIL PROTECTED]) > > >http://www.CFUGToronto.org/ > > >This System has been donated by Infopreneur, Inc. > > >(http://www.infopreneur.net) > > > > > > Guy J. McDowell > > [EMAIL PROTECTED] > > http://www.guymcdowell.com > > > > _________________________________________________________________ > > Join the world�s largest e-mail service with MSN Hotmail. > > http://www.hotmail.com > > > > - > > You are subscribed to the CFUGToronto CFTALK ListSRV. > > This message has been posted by: "Guy McDowell" > <[EMAIL PROTECTED]> > > To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ > > Manager: Kevin Towes ([EMAIL PROTECTED]) > > http://www.CFUGToronto.org/ > > This System has been donated by Infopreneur, Inc. > > (http://www.infopreneur.net) > > > > > - > You are subscribed to the CFUGToronto CFTALK ListSRV. > This message has been posted by: "Bob Silverberg" <[EMAIL PROTECTED]> > To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ > Manager: Kevin Towes ([EMAIL PROTECTED]) > http://www.CFUGToronto.org/ > This System has been donated by Infopreneur, Inc. > (http://www.infopreneur.net) > > - > You are subscribed to the CFUGToronto CFTALK ListSRV. > This message has been posted by: "charlie arehart" > <[EMAIL PROTECTED]> > To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ > Manager: Kevin Towes ([EMAIL PROTECTED]) > http://www.CFUGToronto.org/ > This System has been donated by Infopreneur, Inc. > (http://www.infopreneur.net) - You are subscribed to the CFUGToronto CFTALK ListSRV. This message has been posted by: "Laurie Rose" <[EMAIL PROTECTED]> To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/ This System has been donated by Infopreneur, Inc. (http://www.infopreneur.net)
