• Post Reply Bookmark Topic Watch Topic
  • New Topic

Formatting email messages???

 
myron schabe
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is anyone familiar with how to format the body of email messages - namely I just want to to have multiple lines in my email rather than one long mashed together string. I have already tried just using a string with \r's and \n's embedded in it, which has not worked.
I am using the javax.mail api's.
Many Thanks
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, first off, this is the wrong forum for this post, so I am sure someone will move it.
Secondly, why isn't \n working? It works for me. Can you show some code as to how you are using it?
 
myron schabe
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks - you were right - I double checked my code and I was doing something stupid - so the \n does, in fact, work.
Many Thanks!
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the appropriate forum...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!