If you have a multiline asp:textbox, and you are trying to insert the contents into an email, how do you get it to include the line breaks? For example, if I enter:
1
2
3
4
.... it keepts turning it into:
1 2 3 4
.... which is a bit of a pain. The code I'm using is below. Any ideas? Thanks
<asp:TextBox ID="blah" runat="server" Width="350px" Rows="4" TextMode="MultiLine" Wrap="False"></asp:TextBox>
mail.Subject = "Include line breaks, you stupid email"
mail.Body = "The textbox contains " & Request.Form("blah")
mail.BodyEncoding = System.Text.Encoding.ASCII
mail.IsBodyHtml = True
Dim eclient As New SmtpClient("localhost")
eclient.Send(mail)
1
2
3
4
.... it keepts turning it into:
1 2 3 4
.... which is a bit of a pain. The code I'm using is below. Any ideas? Thanks

<asp:TextBox ID="blah" runat="server" Width="350px" Rows="4" TextMode="MultiLine" Wrap="False"></asp:TextBox>
mail.Subject = "Include line breaks, you stupid email"
mail.Body = "The textbox contains " & Request.Form("blah")
mail.BodyEncoding = System.Text.Encoding.ASCII
mail.IsBodyHtml = True
Dim eclient As New SmtpClient("localhost")
eclient.Send(mail)