Click here to Skip to main content
15,922,166 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a long string which has comma seperated values in it.i want to replace commas with line breaks and send it in e mail.i m using the following code to replace commas by line breaks.

string replce = Regex.Replace(bodystr, ",", Environment.NewLine);

But in email it doesnt show line breaks..for example if my original string is "abc,bcd"
in email it displays as abc bcd. i need to display them as..
abc
bcd..how to do it?Help Me...
Posted

1 solution

You mentioned html, line break in html should be
<br>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900