954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to display an attached image file in email

hi,

actually, my question is about jmail in asp.

i attached an image file in my email.
i tried to make it appear in the email message but it does not.
does anybody know how to display images in an email?

i tried this code below but it only display a box with an 'x'. :rolleyes:

.HTMLBody = .HTMLBody & "<img src=""cid:" & pic & """>"

pic, by the way, holds the image file path.
i hope somebody can help me with my problem.

thanks again,
spidey

daniweb is the best!!

p.s.,
i can only pass images in remote site. is there a way i can upload files from local drive using ? :o

spidey
Junior Poster in Training
53 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

Here is how you can attach the image to an email using the HTMLBody property.

.HTMLBody = .HTMLBody & "<img src=""domaine.com/image.gif"">

I mean by usng the complete remote image path, you can not use the path to your drive or local server as the email will reside on the remote server where you can upload the image if you have the permission.

msaqib
Junior Poster in Training
91 posts since Sep 2004
Reputation Points: 9
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You