SMTP mail sending through ASP.Net

SMTP mail sending through ASP.Net
var smtp = new SmtpClient
           {
               Host = "smtp.gmail.com",
               Port = 587,
               EnableSsl = true,
               DeliveryMethod = SmtpDeliveryMethod.Network,
               UseDefaultCredentials = false,
               Credentials = new NetworkCredential("turkishcorpus1@gmail.com", "my password")
           };
using (var message = new MailMessage("turkishcorpus1@gmail.com", "oruc_esma@hotmail.com")
                     {
                         Subject = "This is the title of the mail",
                         Body = "This is the body"
                         //,IsBodyHtml = true //optional
                     })
{
    smtp.Send(message);
}