sending image thru email + CDO

D

dave

Hi
I'm using CDO message to send email thru asp code.
Below is sample code...

body = body & "<tr><td colspan=2><img
src=images/contacts_5.jpg></td></tr>"

I'm just confused why its not showing images in email
body? It just shows red cross mark in mail body...

Any help would be appreciated...
Thanx
 
A

Aaron [SQL Server MVP]

(a) the e-mail client has no idea where images/contacts5.jpg is. Try
putting that image tag in a file on your desktop. Do you think the browser
can read your mind, and know that you meant
http://www.yoursite.com/images/contacts5.jpg? Of course not. You have to
tell it where to find the image.

(b) many e-mail clients show red x's because the default setting is to NOT
download images from the web, because these are often used to transmit
confirmation back to sniffers. (And further still, many people have
disabled HTML e-mail altogether ... e.g. me.)

(c) to avoid the whole web bug issue see http://www.aspfaq.com/2474 for
instructions on embedding an image into an e-mail, rather than using links.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top