• Post Reply Bookmark Topic Watch Topic
  • New Topic

Javamail email viewer problem

 
Michelle Lee
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
Does anybody know in email viewer,
1. How to format email body so that every line of the email content has limited length?
2. when some hyperlink style text(like http://www.myvoice.com.au) appears,
how can I fomat the text and make it a hyperlink?
Thank you for your answer in advance.
Mei
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mei Xiao:
Hi:
Does anybody know in email viewer,
1. How to format email body so that every line of the email content has limited length?
Mei

I have answer for your first question,
you can html text as content provided all your email client has HTML enabled viewer.
Just some code snippets:
String message="<span style='color:#004fce;'></span>";

MimeBodyPart mbp = new MimeBodyPart();
mbp.setDataHandler(new DataHandler(message, "text/html"));
// add other codes..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!