dcsimg
How to include newline in a msg body?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Bob_Carpenter
Posted On:   Monday, July 4, 2005 06:45 PM

How do I include newlines in the body of a text message being sent using the javaMail API?


I need to send text messages via JavaMail - I can't send the recipients HTML. Is it possible to include newlines in the msg body so that the paragraphs don't run together, and if so how?


I tried including
but didn't work.


Thanks,


--BobC

Re: How to include newline in a msg body?

Posted By:   Anonymous  
Posted On:   Monday, July 18, 2005 09:43 AM

hi
Can u try this
setting the content type to plain/html
and use an

this might work ...
regards
Kalyan Syamalaa

Re: How to include newline in a msg body?

Posted By:   Jani_Kaarela  
Posted On:   Tuesday, July 5, 2005 03:15 AM

A linefeed ("LF" aka "newline", "
") just doesn't cut it. According to several mail-related RFCs, lines are delimited by a CRLF ("
"). See RFC2045, chapter 2.10.
About | Sitemap | Contact