Search
Winners

Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Advertisements
Top Forums Author
Thu, 31-Jul-2014 Authors
Naga116
20
All Time Authors
Jayakumars
4120
Karthikanbarasan
3455
Chvrsri
3140

Latest members | More ...


(Statistics delayed by 5 minutes)

How to create a line break in Plain text email?

Poster
Posted by Poster under C# on 6/18/2009 7:07:03 AM | Views : 32597 | Status : [Member] | Replies : 5


I am trying to send a plain text email using C# and have to create a line break in the body of the email, how to do that?

I tried placing \n but it didn't work.

Thanks



Posted by: Raja on: 6/18/2009 [Member] Starter

Use \r\n for single line break. \n will not work.

Thanks

Regards,
Raja, USA

Poster, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Danmbuen on: 7/21/2009 [Member] Starter

this works for me. thanks raja!!!

Poster, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lakhangarg on: 8/31/2009 [Member] [Moderator] Silver

Use \r\n ..

This is the escape sequence for new line in plain text.

Thanks & Regards
Lakhan Pal Garg
http://lakhangarg.blogspot.com/

Poster, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Poster on: 8/31/2009 [Member] Starter

Thanks Lakhangarg but my question was already answered by Raja and I got the same answer from you too.

Whats the use of giving the same answer just for the sake of answering?

Thanks

Poster, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lakhangarg on: 8/31/2009 [Member] [Moderator] Silver

Sorry poster.. i just read the questionand answer for the same.. sorry for duplicate answer.

Thanks
Lakhan Pal Garg

Poster, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response


Found interesting? Add this to: