I'm sending an email from ASP.NET using MailMessage and SmtpClient. I want to introduce some line breaks but none of the following worked:
- Adding tags
sbBody.Append("<table width='100%'><tr><td></br></br>");
- Adding \r\n
sbBody.Append("<table width='100%'><tr><td>\r\n\r\n");
- Appending a new line to the StringBuilder.
sbBody is a StringBuilder wich I use at the end to set MailMessage's body: mailMessage.Body = sbBody.ToString()
What Am I missing here? I'm viewing the emails in Outlook and off course I'm setting IsBodyHtml to true.
Thanks for your time.
EDIT: Solved, it was a syntax error, </br>
instead of <br/>