Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JAVA MAIL retriving text/ html and Text/plain  RSS feed

Madhup narain bhardwaj
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!