|
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
embed image in cfmail
Is there a way to embed an image in a cfmail without using a web reference.kurt schroeder 05/17/06 05:58 P Kurt,Ben Nadel 05/17/06 06:05 P check outDouglas Knudsen 05/18/06 01:35 A that get's me to a general docs help page. is there a specific area that has the answer i'm lookingkurt schroeder 05/18/06 10:00 A CFmail part will do it as follows:kurt schroeder 05/18/06 10:27 A Hi KurtJose Diaz 05/19/06 09:36 A Just a question. Is this also available within CF 6.1? I can't findCutter (CFRelated) 05/19/06 11:49 A I think the file attribute of cfmailparam has to point to a file path ratherMichael Traher 05/19/06 01:42 P Look at CFMAILPARAM, especially the CONTENTID attribute of it in CFMX 7.Burns, John D 05/18/06 10:26 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 That is excellent, and disheartening. What other undocumented featuresCutter (CFRelated) 05/19/06 01:05 P this functionality was added in the update from 6.0 to 6.1 and was documentedDouglas Knudsen 05/19/06 02:18 P I tried this under Bluedragon, but the images showed up with the missing image iconTuretsky, Seth 05/19/06 01:54 P
Author: kurt schroeder
Is there a way to embed an image in a cfmail without using a web reference. Thanks KES
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
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 > >
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
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
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:
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:
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/
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
Author: kurt schroeder
just saw that. and thanks!!
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.
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:
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:
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/
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||