Here you go. This works for me (image should be in the same folder as the
page, or adjust the CFFILE tag):
<cfmail to="[EMAIL PROTECTED]"
from="[EMAIL PROTECTED]"
subject="test image"
>
<cfmailparam name="mime-version" value="1.0">
<cfmailparam name="content-type"
value='multipart/alternative;
boundary="------------7C252360672B03A0BAD013A5"'>
--------------7C252360672B03A0BAD013A5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
This is the text version. Blah. . . .
--------------7C252360672B03A0BAD013A5
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<html><body>
This is the HTML version.
<IMG src="cid:003a01c11b56$c06b9d20$[EMAIL PROTECTED]">
</body></html>
--------------7C252360672B03A0BAD013A5
Content-Type: image/gif; name="myimage.gif"
Content-Transfer-Encoding: base64
Content-ID: <003a01c11b56$c06b9d20$[EMAIL PROTECTED]>
<cffile action="read" file="#expandpath('myimage.gif')#"
variable="charData">
<cfset data64 = toBase64(charData)>#data64#
--------------7C252360672B03A0BAD013A5--
-- End --
</cfmail>
tom
www.basic-ultradev.com
"Nick Betts" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hello all.
> I need to bulk email a database of users. BAsically, I have an image I
> need to embed in the email which is NOT pointing at a server, so somehow
> I need to embed the image into the email so that even people not online
> can view the image. Is there anyway using CFMAIl to do this?
>
> Cheers,
> Nick Betts
> -----Original Message-----
> From: Nick Betts
> Sent: 07 August 2001 11:20
> To: CF-Talk
> Subject: RE: embedding a MIME image to an email - HELP URGENTLY!
>
>
> Hello all.
> I need to bulk email a database of users. BAsically, I have an image I
> need to embed in the email which is NOT pointing at a server, so somehow
> I need to embed the image into the email so that even people not online
> can view the image. Is there anyway using CFMAIl to do this?
>
> Cheers,
> Nick Betts
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists