RE: SOLUTION: OT - Sniffing Email
Im attempting to post this for the 4th time. I tried to apply the solution below and spent a couple hours on it but I can't seem to get it: Code I am using is below. It has been cut down a bit to make it straight forward. I can sent the code as an attachment if needed as it seems as though proper carriage returns count. Any help on this would be greatly appreciated from = "[EMAIL PROTECTED]"; fromalias = "Brian"; subject = "Test"; plaintextbody = "Plain Test"; htmlbody = "UntitledBOLD TEST"; #myPlainMsgTop##plaintextbody# #myHTMLMsgTop##htmlbody# - Thank you to everyone who responded to this, I received several different ways to do this, and the solution we chose was provided by Ron Allen Hornbaker, President/CTO, Humankind Systems, Inc., over on CF-Community... (you guys should really sign up for the list...it's lots of fun over there.) Here was his answer to the problem along with sample code that I am in the process of testing and implementing. This is something worth marking for a future look if you are dealing with clients who send out email newsletters or any kind of marketing email. Erika, Them durned FloNetwork folks is usin' high-falutin' marketing-speak for a very common type of email formatting: the multipart-alternative message. We use it all the time, and so does Amazon, EggHead, and any other big-time html email newsletter you've ever seen. We learned it by just examining the headers of newsletters from Amazon, and it's really quite simple. The receiving mail client will display the HTML version if it can, and the plain-text version if it cannot. Remember: email is one of the oldest 'net technologies around, and it's all just plain text (even attachments). You can examine the full headers and text of messages quite easily with most email clients. Here's some CF code that will do it... it expects form imput like you see in the cfparam's, and will create a multipart/alternative message if you've provided an HTML body for the message in the form... .. your query here to get the recips firstname, email, etc. ... #myPlainMsgTop##myPlainText# #myHTMLMsgTop##myHTMLText# Done! == The carriage returns, especially after the first and second lines of the message Subject, are very important... that's how you set custom headers (like Content-Type: multipart/alternative, etc.) with the tag. The MIME-BOUNDARY can be set to just about any string that's unique. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: SOLUTION: OT - Sniffing Email
Brian, What is it that you can't seem to get? I haven't had the time yet to implement this solution since I've posted it (another priority project got in the way), so I haven't started testing it, but I may have some moments this morning to spend on it... Erika "Twixt optimist and pessimist, The difference is droll; The optimist sees the doughnut, The pessimist, the hole." - McLandburgh Wilson -Original Message- From: Brian Peddle [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 9:53 AM To: CF-Talk Subject: RE: SOLUTION: OT - Sniffing Email Im attempting to post this for the 4th time. I tried to apply the solution below and spent a couple hours on it but I can't seem to get it: Code I am using is below. It has been cut down a bit to make it straight forward. I can sent the code as an attachment if needed as it seems as though proper carriage returns count. Any help on this would be greatly appreciated from = "[EMAIL PROTECTED]"; fromalias = "Brian"; subject = "Test"; plaintextbody = "Plain Test"; htmlbody = "UntitledBOLD TEST"; #myPlainMsgTop##plaintextbody# #myHTMLMsgTop##htmlbody# - Thank you to everyone who responded to this, I received several different ways to do this, and the solution we chose was provided by Ron Allen Hornbaker, President/CTO, Humankind Systems, Inc., over on CF-Community... (you guys should really sign up for the list...it's lots of fun over there.) Here was his answer to the problem along with sample code that I am in the process of testing and implementing. This is something worth marking for a future look if you are dealing with clients who send out email newsletters or any kind of marketing email. Erika, Them durned FloNetwork folks is usin' high-falutin' marketing-speak for a very common type of email formatting: the multipart-alternative message. We use it all the time, and so does Amazon, EggHead, and any other big-time html email newsletter you've ever seen. We learned it by just examining the headers of newsletters from Amazon, and it's really quite simple. The receiving mail client will display the HTML version if it can, and the plain-text version if it cannot. Remember: email is one of the oldest 'net technologies around, and it's all just plain text (even attachments). You can examine the full headers and text of messages quite easily with most email clients. Here's some CF code that will do it... it expects form imput like you see in the cfparam's, and will create a multipart/alternative message if you've provided an HTML body for the message in the form... ... your query here to get the recips firstname, email, etc. ... #myPlainMsgTop##myPlainText# #myHTMLMsgTop##myHTMLText# Done! == The carriage returns, especially after the first and second lines of the message Subject, are very important... that's how you set custom headers (like Content-Type: multipart/alternative, etc.) with the tag. The MIME-BOUNDARY can be set to just about any string that's unique. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: SOLUTION: OT - Sniffing Email
On 4/12/01 10:43 AM Erika L Walker wrote: > Brian, > > What is it that you can't seem to get? I haven't had the time yet to > implement this solution since I've posted it (another priority project got > in the way), so I haven't started testing it, but I may have some moments > this morning to spend on it... I don't know if Brian is having the same problem I am having, but I get both versions of the email in a plain text only email. So I get: > MIME-BOUNDARY > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > > blah > > MIME-BOUNDARY > Content-Type: text/html; charset=us-ascii > Content-Transfer-Encoding: 7bit > > > > > > bgcolor="white"> > > blah > > > I did notice in the headers of the email that the Content-type header appears twice. Look: Content-type: text/plain Date: Thu, 12 Apr 2001 11:20:13 -0400 From: "From" <[EMAIL PROTECTED]> Subject: This is my subject Content-type: multipart/alternative;boundary="MIME-BOUNDARY" X-Mailer: ContestClicker Mailer, MIME-Version: 1.0 To: [EMAIL PROTECTED] Return-Path: [EMAIL PROTECTED] Message-ID: X-OriginalArrivalTime: 12 Apr 2001 15:26:34.0687 (UTC) FILETIME=[F55A84F0:01C0C364] X-RCPT-TO: <[EMAIL PROTECTED]> X-UIDL: 2140 Status: U Is there something we need to do to rid oursleves of that first content type header? - Sean ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: SOLUTION: OT - Sniffing Email
On 4/12/01 9:53 AM Brian Peddle wrote: > Im attempting to post this for the 4th time. I tried to apply the solution > below and spent a couple hours on it but I can't seem to get it: Code I am > using is below. It has been cut down a bit to make it straight forward. I > can sent the code as an attachment if needed as it seems as though proper > carriage returns count. Any help on this would be greatly appreciated Brian, I found that using the tag to push the extra headers (rather than appending them to the subject as was suggested) worked. Instead of: > > From='"#Form.FromAlias#" <#form.from#>' > Server="206.57.37.74" > Subject="#mySubject# > Content-type: #contenttype# > #myHeaders#">#myPlainMsgTop##myPlainText# > > #myHTMLMsgTop##myHTMLText# > I used: " subject="#subject#"> #myPlainMsgTop##myPlainText# #myHTMLMsgTop##myHTMLText# I believe that the cfmailparam tag isn't supported below CFAS 4.5 though. - Sean ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists