• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAVA MAIL retriving text/ html and Text/plain

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
i have been using java mail to develope an application.
i have been tryin to toy around with retrival of HTML attachments and to my surprise it is really messed up
my findings are as follows
1) if i retrieve a mail it is either indicated as an multipart or any simple part

my problem
1)HTML mails are recoginsed twice ie the first time
text/html and the mail gets printed the next time as
text/plain and the mail gets printed.
ultimately i land up with two parts of the same message body for the HTML mail that im retrieving
if i read a plain text mail i have no problem in the displaying
what i need
is there any way that i can force a html message body not to replicate its self i.e if the mail is a plain HTML mail it should only be read as a plain HTML mail and i shouldnt enter the palin/text case
any help would be apperciated

 
reply
    Bookmark Topic Watch Topic
  • New Topic