Dim eMSG As New MailMessage eMSG.From = New MailAddress(<from addr>) eMSG.To.Add("kevin.brady.az@gmail.com") eMSG.Subject = "Hello - Test Message" eMSG.Body = "Test123 Test123" Dim SMTP As New SmtpClient("smtp.mail.yahoo.com") SMTP.Port = 465 SMTP.EnableSsl = True SMTP.Credentials = New System.Net.NetworkCredential(<username>, <pwd>) Try SMTP.Send(eMSG) MsgBox("Your Mail has been Successfully sent") Catch ex As Exception MsgBox(ex.ToString) End Try
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)