modify the following code as per your convenience.
#region Code to send emails automatically
//code for sending mail to Admin
// Create a new blank MailMessage
MailMessage email = new MailMessage();
// Set the properties of the MailMessage to the
// values on the form
email.BodyFormat = MailFormat.Html;
email.From = "email of the sender."
email.To = "Email of the recipient"
email.Subject = "Thank You";
email.Body = "You can add as many lines as you want in body. just need to use following method.";
email.Body += "add more lines like this";
email.Body += " <br>Test line 1";
email.Body += "Test Line 2";
email.Body += "Thank You <br><br>";
email.Body += "Regards,<br>";
// Set the SMTP server and send the email
SmtpMail.SmtpServer = "your smtp server's name";
catch (Exception ex)
// Print a much less friendly message informing the
// user about the exception that was risen