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
This worked for me:
mail.Body = String.Format(@"Some text here: A new line here And another line here");
Just be careful to not indent on the 2nd and 3rd line.