|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
embed image in cfmail
Author: Douglas Knudsen
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46000#241003
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
----- Excess quoted text cut - see Original Post for more -----
Author: Turetsky, Seth
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46000#240996
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/
Author: Michael Traher
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46000#240995
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/
Author: Cutter (CFRelated)
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46000#240993
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 -----
Author: Munson, Jacob
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46000#240987
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.
Author: Cutter (CFRelated)
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46000#240984
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 -----
Author: Jose Diaz
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46000#240968
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 -----
Author: kurt schroeder
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46000#240894
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 -----
Author: kurt schroeder
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46000#240895
just saw that. and thanks!!
----- Excess quoted text cut - see Original Post for more -----
Author: Burns, John D
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46000#240893
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 -----
Author: kurt schroeder
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46000#240891
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 -----
Author: Douglas Knudsen
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46000#240875
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
Author: Ben Nadel
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46000#240847
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: kurt schroeder
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46000#240846
Is there a way to embed an image in a cfmail without using a web reference.
Thanks
KES
|
May 24, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||