Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

send multiple lines of strong using html  RSS feed

 
Xiao Ava
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i tried to send multiple lines of string using .setContent method however the last lines will over write all the strings before and hence only the last line is sended. Where can i get source of sending multiple lines of string vis java mail?
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
setContent just sets. It doesn't append. Try concatenating your HTML using a StringBuffer, then call setContent with the results of StringBuffer.toString.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!