HI, I am trying to send a simple notification using system.net.mail.mailmessage. I just pass the string as the message body. But problem is even though multi-line message be
//the email body should be HTML //replaces the new line characters \n\r with the break HTML
mailMsg.IsBodyHtml = true; mailMsg.Body = this.Body; mailMsg.BodyEncoding = System.Text.Encoding.ASCII; mailMsg.Body = mailMsg.Body.Replace(Environment.NewLine, "");