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

java mail: message body line formating  RSS feed

 
liliya woland
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a string data that gets put together in a loop and later gets added to
email message body.
I want to have a <br> or a new line inserted into my data string.
I tried concatinating , data = data + "<br>", but that doesn't add a new line;
the message comes in, and <br> is parsed as text, not the actual new line.
Could someone tell me how should I go about it?
Thanks in advance.
 
liliya woland
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it.
I used + "\n";
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!