how to display an attached image file in email

Reply

Join Date: Aug 2005
Posts: 52
Reputation: spidey is an unknown quantity at this point 
Solved Threads: 0
spidey's Avatar
spidey spidey is offline Offline
Junior Poster in Training

how to display an attached image file in email

 
0
  #1
Nov 7th, 2005
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:
  1. .HTMLBody = .HTMLBody & "<img src=""cid:" & pic & """><br><br>"
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 <input type="file">? :o
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 89
Reputation: msaqib is an unknown quantity at this point 
Solved Threads: 1
msaqib msaqib is offline Offline
Junior Poster in Training

Re: how to display an attached image file in email

 
0
  #2
Nov 8th, 2005
Here is how you can attach the image to an email using the HTMLBody property.
  1. .HTMLBody = .HTMLBody & "<img src=""domaine.com/image.gif""><br><br>
  2.  
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC