|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Embed image in e-mail
Is it possible to embed an image in a cfmail page? I don't want to attach it, I actually want an image to load in the e-mail. I also do not want to simply reference a url, as this would be coming from an internal server. Any insight appreciated.
|
|
#2
|
|||
|
|||
|
I believe that you can either attach it using cfmailparam, or embed it in an HTML-formatted email using the <img> tag. I don't know of a way to embed it in the message without using a link in the <img> tag.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
I think you can use <img> tag of HTML to embed an image in the body of the e-mail, but this may help only to view the image but never tried whether it will embed or not.
|
|
#4
|
|||
|
|||
|
Get the latest version of CFMX 6.1 (the one released somewhere in august). CFMAILPARAM got 2 new parameters named 'disposition' and 'contentID', which make it possible to embed an image. Here's a short code snippet:
<CFMAILPARAM file="#ExpandPath("/images")#/logo.gif" type="image/gif" disposition="inline" contentID=#cid_logo#> cid_logo is a created UUID in your html-mail u can then use <img src="cid:#cid_logo#" ... to embed your image Hope that helped and sorry for the bad english. |
|
#5
|
|||
|
|||
|
Nice, I didn't know that!
|
|
#6
|
|||
|
|||
|
Thanks, I have 6.1 so I'll give that a try and post my results.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Embed image in e-mail |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|