Dim smtpServer As New SmtpClient Dim mail As New MailMessage() smtpServer.Credentials = New Net.NetworkCredential("myemail@gmail.com", "pass") smtpServer.Port = 587 smtpServer.Host = "smtp.gmail.com" smtpServer.EnableSsl = True mail = New MailMessage() mail.From = New MailAddress("myemail@gmail.com") mail.To.Add("users-email@gmail.com") mail.Subject = " Welcome" mail.Body = "hi" smtpServer.Send(mail)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)