I am trying to pull in data from a web form into an email body. The fields are showing up in my email, but i want to format the body of the email message so it is visually appealing. When I apply the code below, it seperates with a comma and I want to know how can I seperate the passing data with a page break? The underlined code below is what id like to modify.
Any ideas? Thank you in advance!!
Code:
//send new confirmation email
MailMessage EmailMsg = new MailMessage();
EmailMsg.From = new MailAddress("insert email address", "insert sender name");
EmailMsg.To.Add(new MailAddress("insert email address", "insert friendly name"));
EmailMsg.Subject = "Insert Subject";
[u]EmailMsg.Body = CurrentTime.Text + "," + txtName.Text + "," + txtDepartment.Text + "," + txtWebsite.Text;[/u]
EmailMsg.IsBodyHtml = true;
EmailMsg.Priority = MailPriority.Normal;
SmtpClient MailClient = new SmtpClient("insert server name");
MailClient.Credentials = new System.Net.NetworkCredential("insert username", "insert password");
MailClient.Send(EmailMsg);
Any ideas? Thank you in advance!!