ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 19th, 2005, 02:47 PM
radone radone is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 12 radone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 35 m 25 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old January 20th, 2005, 09:35 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,655 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 13 h 29 m 20 sec
Reputation Power: 53
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

Reply With Quote
  #3  
Old January 21st, 2005, 09:17 AM
venkatgill venkatgill is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 9 venkatgill User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #4  
Old January 25th, 2005, 08:26 AM
Black Adder Black Adder is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 16 Black Adder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 47 m 27 sec
Reputation Power: 0
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.

Reply With Quote
  #5  
Old January 25th, 2005, 10:35 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,655 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 13 h 29 m 20 sec
Reputation Power: 53
Nice, I didn't know that!

Reply With Quote
  #6  
Old January 25th, 2005, 03:36 PM
radone radone is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 12 radone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 35 m 25 sec
Reputation Power: 0
Thanks, I have 6.1 so I'll give that a try and post my results.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Embed image in e-mail


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway