Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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
Reply With Quote
  #2 (permalink)  
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.
Reply With Quote
  #3 (permalink)  
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")

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 10:30 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.