Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

referencing attachements in mail html text of email

 
Divyajot Ahluwalia
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends,
i have been trying to send emails with html content and images in such a manner that the images are attached and the images in the main email links to the attached image. i have tried the following code but i am unable to establish the link.
Please help
the code is:

this is from a jsp page im trying to use
the final email has the image attached but does not show it in the final email's html content.
Please help
DS

(edited by Cindy to format code and put spaces in html strings so that they will display)
[This message has been edited by Cindy Glass (edited December 12, 2001).]
 
Kajol Shroff
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have gone through your code and this is exactly what I want but I am using applets.
Can you tell me which package have you imported so that I can get the Mime Classes.
I am able to send the mail but the mail is comming as a text message whereas actually it is complete html code.
I saw the java.net package and in that the ContentHandler class, but this has a getContent() which takes a URL as parameter. So its of no help as such.
Can you let me know how do I resolve this problem
Thanks
Kajol
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic