vb.net
Import namespace " System.Net.Mail".And add following coding on button click
Import namespace " System.Net.Mail".And add following coding on button click
Dim m As MailMessage = New MailMessage() m.To.Add("Email id of receiver") m.From = New MailAddress("Add your email it here") m.Subject = "Subject line of your mail is kept here" String Body = "Add you mail body here" m.Body = Body mail.IsBodyHtml = True Dim smtp As SmtpClient = New SmtpClient() smtp.Host = "smtp.gmail.com" smtp.Credentials = New System.Net.NetworkCredential ("your gmail id","password of gmail") smtp.EnableSsl = True smtp.Send(mail)