|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
ColdFusion e-mail Engine
Author: Howie Hamlin
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:35810#180624
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
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.
Author: Ian Skinner
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:35810#180609
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.
Author: Damien McKenna
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:35810#180605
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
Author: Ian Skinner
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:35810#180604
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.
Author: Howie Hamlin
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:35810#180602
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
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.
Author: Ian Skinner
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:35810#180600
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.
|
May 24, 2012
|
Latest Fusion Authority Articles
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||