Here is a post how to send Email using VB.NET including your Gmail Account
Imports System.Net.Mail Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim mail As New MailMessage Dim smtpServer As New SmtpClient smtpServer.Credentials = New Net.NetworkCredential("hellolasantha@gmail.com", "") smtpServer.Port = 587 smtpServer.Host = "smtp.gmail.com" smtpServer.EnableSsl = True mail = New MailMessage mail.From = New MailAddress("sebder@gmail.com", "Web Developers", System.Text.Encoding.UTF8) mail.Subject = "Testing" mail.Body = "Body" mail.To.Add("receiver@gmail.com") Try smtpServer.Send(mail) Catch ex As Exception MessageBox.Show(ex.Message) End Try End Sub
worked...
ReplyDeletecopy and paste.....changed addresses, and it worked