944,062 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 16953
  • ASP RSS
Nov 7th, 2005
0

how to display an attached image file in email

Expand Post »
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:
ASP Syntax (Toggle Plain Text)
  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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
spidey is offline Offline
53 posts
since Aug 2005
Nov 8th, 2005
0

Re: how to display an attached image file in email

Here is how you can attach the image to an email using the HTMLBody property.
ASP Syntax (Toggle Plain Text)
  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.
Reputation Points: 9
Solved Threads: 1
Junior Poster in Training
msaqib is offline Offline
91 posts
since Sep 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: bu
Next Thread in ASP Forum Timeline: autentication error -1003





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC