How to create a line break in Plain text email?

Posted by Poster under C# on 6/18/2009 | Views : 38051 | 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




Responses

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

Up
0
Down
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

Up
0
Down
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

Up
0
Down
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

Up
0
Down
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

Up
0
Down
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