Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 30th, 2005, 12:13 AM
Authorized User
Points: 189, Level: 3
Points: 189, Level: 3 Points: 189, Level: 3 Points: 189, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2005
Location: Brandon, MS, USA.
Posts: 27
Thanks: 3
Thanked 0 Times in 0 Posts

Trying ro find out if there is a common ASP proerty using COD to the one in CDONTS (This machine uses IIS6) which handled Embedded images in email. I have found the property for attached files, but not yet for embedded images. ASP Email has one, but I cannot get aspemail to work on IIS6 on Windows 2003 server. Every file with a Persits object in it gets the page can't be displayed error, like it's not even there. I have used aspemail on other IIS versions without a hitch, but IIS6 must be somehow different.

Cullan crothers
Old October 24th, 2005, 01:19 AM
Authorized User
Join Date: Jul 2004
Location: Barrie, Ontario, Canada.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts

The simplest way would be to create a standard HTML page, however you like, with your image inserted normally. Then use the .CreateMHTMLBody method to let CDO create the message from the file and send it.

I find now that W2k and up are using the standard CDO, one does not need any 3rd party addons. I have a 1000+ page book, oddly enough published by Wrox :), that only covers Messaging, mostly with CDO. It is amazing what you can do, as I am finding out.
Old February 24th, 2006, 06:16 PM
Registered User
Join Date: Feb 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

When you look at the vanilla information that comes to your email client, the embedded image is handled through a IMG tag with a "cid:" reference to an attached image.
<IMG SRC="cid:imageref">
Embedded Content: ImageName.type: imageRef

This can be handled through the email components by creating the email as HTML encoded and attaching the image to the email.
Using CDOSYS this would look like: (I haven't tested this coding)

msg.HTMLBody = "Bob, this is me: <img src='cid:picture1'>"
msg.AddAttachment("C:\me.jpg", "me", "picture1")

Similar Threads
Thread Thread Starter Forum Replies Last Post
CDO/CDONTS: Receiving mail delivery confirmation antalas Classic ASP Professional 0 February 21st, 2006 03:43 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.