House of Fusion
Home of the ColdFusion Community

Search cf-talk

September 30, 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         

Subscribe Now
Fusion Authority Quarterly Update - ColdFusion 8 Special Edition
Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

embed image in cfmail

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Kurt,
Ben Nadel
05/17/06 06:05 P
check out
Douglas Knudsen
05/18/06 01:35 A
CFmail part will do it as follows:
kurt schroeder
05/18/06 10:27 A
Hi Kurt
Jose Diaz
05/19/06 09:36 A
just saw that. and thanks!
kurt schroeder
05/18/06 10:27 A
From LiveDocs for cfmailparam:
Munson, Jacob
05/19/06 12:25 P

05/17/2006 05:58 PM
Author:
kurt schroeder

Is there a way to embed an image in a cfmail without using a web reference. Thanks KES

05/17/2006 06:05 PM
Author:
Ben Nadel

Kurt, I have done it before, in ColdFusion 5, but not in years. The way it worked there was similar to MS Word embedded images. You write the image in Base64 to the mail data and give it an id and then you refer to that id in the HTML markup. Something like: <img src="@header_image" /> I don't remember any of the specific I regret. It was done with some tag called CF_advancedmail I think, if that helps. But, nonetheless, it can be done, I have done it. ...................... Ben Nadel Web Developer Nylon Technology 350 7th Avenue Floor 10 New York, NY 10001 212.691.1134 212.691.3477 fax www.nylontechnology.com "You know, like nunchuck skills, bowhunting skills, computer hacking skills... Girls only want boyfriends who have great skills." - Napoleon Dynamite Is there a way to embed an image in a cfmail without using a web reference. Thanks KES

05/18/2006 01:35 AM
Author:
Douglas Knudsen

check out http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context= ColdFusion_Documentation&file=part_cfm.htm DK On 5/17/06, kurt schroeder <kurt@iknowtek.com> wrote: > Is there a way to embed an image in a cfmail without using a web reference. > > Thanks > KES > >

05/18/2006 10:00 AM
Author:
kurt schroeder

that get's me to a general docs help page. is there a specific area that has the answer i'm looking for? thanks kes

05/18/2006 10:27 AM
Author:
kurt schroeder

CFmail part will do it as follows: <cfmail ****** type="html"> <cfmailparam file="http://0.0.0.0/images/thsimg1.gif" contentid="myimg1" disposition= "inline"> <img src="cid:myimg1"> </cfmail> Thanks KES

05/19/2006 09:36 AM
Author:
Jose Diaz

Hi Kurt you could use the following, the macromedia info on the contentID isnt very exstensive: <cfmail type="html" to = "jose.diaz-salcedo@csd.reedexpo.com" from = "bleachedbug@gmail.com" subject = "my test embeded image tutorial"> <cfmailparam file=" http://www.bbc.co.uk/history/ancient/romans/images/gladiator_pic.jpg" disposition="inline" contentID="image1"> <cfmailparam file=" http://www.bbc.co.uk/history/ancient/romans/images/gladiator_pic.jpg" disposition="inline" contentID="image2"> <cfmailparam file=" http://www.bbc.co.uk/history/ancient/romans/images/gladiator_pic.jpg"     disposition="inline" contentID="image3"> There should be an image here from the BBC<br> <img src="cid:image1"><br> <br> <img src="cid:image2"><br> <br> <img src="cid:image3"><br> <br>This is just some duff content after the image heh ;)<br> </cfmail> Thanks Jose Diaz On 5/18/06, kurt schroeder <kurt@iknowtek.com> wrote:

05/19/2006 11:49 AM
Author:
Cutter (CFRelated)

Just a question. Is this also available within CF 6.1? I can't find reference to 'contentID' in the livedocs... Cutter Jose Diaz wrote:

05/19/2006 01:42 PM
Author:
Michael Traher

I think the file attribute of cfmailparam has to point to a file path rather than a URL to an image file. more like <cfmailparam file="gladiator_pic.jpg" disposition="inline" contentID="image1"> -- Mike T Blog http://www.socialpoints.com/

05/18/2006 10:26 AM
Author:
Burns, John D

Look at CFMAILPARAM, especially the CONTENTID attribute of it in CFMX 7. You give it a contentID and use that in your source for your html. Look at http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/comm on/html/wwhelp.htm?context=ColdFusion_Documentation&file=part_cfm.htm And there's a section entitled "To display a file inline in a mail message" that tells you all about it. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer that get's me to a general docs help page. is there a specific area that has the answer i'm looking for? thanks kes

05/18/2006 10:27 AM
Author:
kurt schroeder

just saw that. and thanks!!

05/19/2006 12:25 PM
Author:
Munson, Jacob

From LiveDocs for cfmailparam: "History: ColdFusion MX 6.x Added the Disposition and ContentID attributes." This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. A1.

05/19/2006 01:05 PM
Author:
Cutter (CFRelated)

That is excellent, and disheartening. What other undocumented features of CF have I passed over these past several years? I say this because, within the 6.1 livedocs, there is no reference to these attributes to the tag. Only now, after doing a 'find' on 'contentID' within Firefox, do I find reference to this addition through an updater, referenced within a message at the bottom dated Sept of 2004. Is it that hard to add this to the actual 'attributes' documentation within the document? Cutter ________________ http://blog.cutterscrossing.com Munson, Jacob wrote:

05/19/2006 02:18 PM
Author:
Douglas Knudsen

this functionality was added in the update from 6.0 to 6.1 and was documented http://www.adobe.com/support/coldfusion/releasenotes/mx/mx61_release_notes.html DK On 5/19/06, Cutter (CFRelated) <cold.fusion@cutterscrossing.com> wrote:

05/19/2006 01:54 PM
Author:
Turetsky, Seth

I tried this under Bluedragon, but the images showed up with the missing image icon Can anyone else try? I think the file attribute of cfmailparam has to point to a file path rather than a URL to an image file. more like <cfmailparam file="gladiator_pic.jpg" disposition="inline" contentID="image1"> -- Mike T Blog http://www.socialpoints.com/


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

Mailing Lists