House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

embed image in cfmail

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
kurt schroeder
05/17/2006 05:58 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ben Nadel
05/17/2006 06:05 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Douglas Knudsen
05/18/2006 01:35 AM

check out http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=part_cfm.htm DK > Is there a way to embed an image in a cfmail without using a web reference. > > Thanks > KES

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
kurt schroeder
05/18/2006 10:00 AM

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 ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
kurt schroeder
05/18/2006 10:27 AM

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 ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jose Diaz
05/19/2006 09:36 AM

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 ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Cutter (CFRelated)
05/19/2006 11:49 AM

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: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Michael Traher
05/19/2006 01:42 PM

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"> ----- Excess quoted text cut - see Original Post for more ----- -- Mike T Blog http://www.socialpoints.com/

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Burns, John D
05/18/2006 10:26 AM

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 ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Munson, Jacob
05/19/2006 12:25 PM

From LiveDocs for cfmailparam: "History: ColdFusion MX 6.x Added the Disposition and ContentID attributes." ----- Excess quoted text cut - see Original Post for more ----- 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.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Cutter (CFRelated)
05/19/2006 01:05 PM

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: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Turetsky, Seth
05/19/2006 01:54 PM

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"> ----- Excess quoted text cut - see Original Post for more ----- -- Mike T Blog http://www.socialpoints.com/


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

Search cf-talk

May 25, 2013

<<   <   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 31   

Designer, Developer and mobile workflow conference