House of Fusion
Home of the ColdFusion Community

Search cf-talk

November 22, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
             1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30             

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

ColdFusion e-mail Engine

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 

10/05/2004 04:46 PM
Author:
Ian Skinner

We are looking at creating a simple e-mail engine for an application.  It will be very simple function to send fairly basic messages to a list of addresses.  A lot like our favorite HOF messages.    Unfortunately, we can't get the powers-that-be to completely forgo all HTML in the e-mail messages.   They are insisting on a graphic logo and probably some heading and emphasis (<H?>|<strong>|<em>) markup as well as clickable anchors. I know this would be easy to do with a ColdFusion <cfmail> tag by setting the "type" parameter to "HTML".  My question is does this generate proper multi-part mine type e-mails (like I REALLY know what that means).  But I think that is what I am trying to ask about.  Do HTML messages sent by the ColdFusion mail tag contain a proper "text only" segment?  Are they supposed to? Is this a non-issue that I don't need to worry my pretty little head about? Pointers to the proper standards that I should understand would be nice.  Links to information on how ColdFusion fits into the standards are even better.  Correcting my understanding of ColdFusion and e-mail in "... for Dummies" language best yet. TIA -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice:  This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message.

10/05/2004 05:03 PM
Author:
Howie Hamlin

If you are running CFMX then CF will create the multipart email properly.  However, the images will be linked and not embedded and you will need to create the plain text version of the mail as well. Something like this in CFMX 6.1: <CFMAIL ...>   <CFMAIL PARAM ...>   <CFMAILPART type="text">   Text version goes here   </CFMAILPART>   <CFMAILPART type="html">   <B>HTML version goes here</B>   </CFMAILPART> </CFMAIL> Here are some articles if you are using older versions of CF: http://www.sys-con.com/coldfusion/articleprint.cfm?id=307 http://www.teratech.com/ColdCuts/cutdetail.cfm?cutid=169 Again, all of the images and such will be linked and not embedded - there are plusses and minuses associated with linking and embedding in emails. HTH, -- Howie Hamlin - inFusion Project Manager On-Line Data Solutions, Inc. - www.CoolFusion.com inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server PrismAV - Virus scanning for ColdFusion applications >>> Find out how iMS Stacks up to the competition: http://www.coolfusion.com/imssecomparison. cfm ----- Original Message ----- From: Ian Skinner To: CF-Talk Sent: Tuesday, October 05, 2004 4:43 PM Subject: ColdFusion e-mail Engine We are looking at creating a simple e-mail engine for an application.  It will be very simple function to send fairly basic messages to a list of addresses.  A lot like our favorite HOF messages.    Unfortunately, we can't get the powers-that-be to completely forgo all HTML in the e-mail messages.   They are insisting on a graphic logo and probably some heading and emphasis (<H?>|<strong>|<em>) markup as well as clickable anchors. I know this would be easy to do with a ColdFusion <cfmail> tag by setting the "type" parameter to "HTML".  My question is does this generate proper multi-part mine type e-mails (like I REALLY know what that means).  But I think that is what I am trying to ask about.  Do HTML messages sent by the ColdFusion mail tag contain a proper "text only" segment?  Are they supposed to? Is this a non-issue that I don't need to worry my pretty little head about? Pointers to the proper standards that I should understand would be nice.  Links to information on how ColdFusion fits into the standards are even better.  Correcting my understanding of ColdFusion and e-mail in "... for Dummies" language best yet. TIA -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice:  This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message.

10/05/2004 05:13 PM
Author:
Ian Skinner

Howie, Thanks that's just the clarification I was looking for.  I had a vague memory that I need to do something to help the e-mail be properly "multi-part."  The <CFMAILPART> tag was what I was missing. Can you explain or point to more information on the linking vs embedding of images question?  This will be run off of a CFMX 6.1 server. Thanks -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice:  This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message.

10/05/2004 05:23 PM
Author:
Damien McKenna

First off, upgrade to the 6.1 Updater, you _want_ that if you are doing anything with CFMAIL.  You want it anyway, but it adds extra functionality to CFMAIL. For your email attachments you need to do it like this: - in the HTML code replace the image src path/filename with a unique ID associated with that image starting with "cid:", e.g. <img src="cid:1234567890" />. - attach the image as follows: <cfmailparam file="#imagename#" type="#getMimeType(imagename)#" disposition="inline" contentid="#imagecid#" /> where: - imagename - the filename of the actual image. - imagecid - the unique contentid you used earlier. Again you need 6.1 Updater for this to work, but I've been using it successfully for several weeks with great results! -- *Damien McKenna* - Web Developer - dmckenna@thelimucompany.com <mailto:dmckenna@thelimucompany.com> The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 "Nothing endures but change." - Heraclitus

10/05/2004 06:34 PM
Author:
Howie Hamlin

I don't have any links but the pros/cons are: linking: pros: smaller mails cons: email renders slower.  user needs to be on line embedding: faster rendering.  user can be off line after downloading email cons: larger email HTH, Howie   ----- Original Message -----   From: Ian Skinner   To: CF-Talk   Sent: Tuesday, October 05, 2004 5:10 PM   Subject: RE: ColdFusion e-mail Engine   Howie,   Thanks that's just the clarification I was looking for.  I had a vague memory that I need to do something to help the e-mail be properly "multi-part."  The <CFMAILPART> tag was what I was missing.   Can you explain or point to more information on the linking vs embedding of images question?  This will be run off of a CFMX 6.1 server.   Thanks   --------------   Ian Skinner   Web Programmer   BloodSource   www.BloodSource.org   Sacramento, CA   "C code. C code run. Run code run. Please!"   - Cynthia Dunning   Confidentiality Notice:  This message including any   attachments is for the sole use of the intended   recipient(s) and may contain confidential and privileged   information. Any unauthorized review, use, disclosure or   distribution is prohibited. If you are not the   intended recipient, please contact the sender and   delete any copies of this message.

10/05/2004 05:33 PM
Author:
Ian Skinner

Damien Thanks, I believe the server in question is upgraded to 6.1, not sure about the latest updater though.  If not, we will easily rectify that.   Just to make sure I am clear.  Using the technique you described will embed the images, giving us the choice to link or embed? -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice:  This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message.


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists