• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

referencing attachements in mail html text of email

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

(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).]
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic