I am using system.web.mail to send an email in asp.net (c#). I would like to format the body of the email message so that it includes an indentation on new lines. Can someone give me an example of how to do this? Thanks!
Here's my code so far:
MailMessage mail = new MailMessage();
mail.To = "someone@someplace.org";
mail.From = "someoneelse@someotherplace.com";
mail.Subject = "this is a test email.";
mail.Body = "Dear Someone," + Environment.NewLine + "I would like this line to be indented.";
SmtpMail.SmtpServer = "somemailserver.com";
SmtpMail.Send( mail );
Here's my code so far:
MailMessage mail = new MailMessage();
mail.To = "someone@someplace.org";
mail.From = "someoneelse@someotherplace.com";
mail.Subject = "this is a test email.";
mail.Body = "Dear Someone," + Environment.NewLine + "I would like this line to be indented.";
SmtpMail.SmtpServer = "somemailserver.com";
SmtpMail.Send( mail );