Appear in Online Interview to test your skills and be ready for job!
Twitter Twitter LinkedIn YouTube Google
Be Interview ready ! | Search
Submit content and win cash & prizes monthly.
Winners

Win Prizes

Announcements
Like us on Facebook
Sponsor
Top Forums Author
Thu, 24-Apr-2014 Authors
Bageshkumarbagi
10
Brierust
10
Chaithragm
10
All Time Authors
Jayakumars
3930
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 : 31112 | 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



Reply | Reply with Attachment

=> Scroll below for responses


Comments or Responses

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.

Comments / Responses
Select text & click toolbar to format. Formatting appears in viewmode only. HTML Tags are not allowed.
Bold Italic Underline Paragraph Title Code  Link 
 Wait ... Processing ..... please wait.

Found interesting? Add this to: