Sending email via ASP.NET C sharp

The following code gives an example of how to send mail via ASP.NET using C#

MailMessage Message = new MailMessage();
SmtpClient Smtp = new SmtpClient();
System.Net.NetworkCredential SmtpUser = new System.Net.NetworkCredential();

// Basic data emailMessage
.From = new MailAddress("van@email.nl", "From sample");
Message.To.Add(new Mailaddress("naar@email.nl", "To sample");
Message.IsBodyHTML = false;

// Subject data & BodyMessage
.Subject = "Subject title";
Message.Body = "Sample text body";

// SMTP Authentication, an email address created in the control panelSmtpUser
.UserName = "email address";
SmtpUser.Password = "password to the email address";

// Send MessageSmtp
.UseDefaultCredentials = false;
Smtp.Credentials = SmtpUser;
Smtp.Host = "smtp.myhostingpartner.co.uk";
Smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
Smtp.Send(Message);