Кто-нибудь может понять, почему это не пришло ... Я неоднократно проверял адрес электронной почты и пароль ...
Imports System.Net.Mail
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim Mail As New MailMessage
Mail.From = New MailAddress("myemail@googlemail.com")
Mail.To.Add("myemail@googlemail.comm")
Mail.Subject = "test"
Mail.Body = txtcomment.Text
Dim smtp As New SmtpClient("smtp.gmail.com")
smtp.Port = 587
smtp.EnableSsl = True
smtp.Credentials = New System.Net.NetworkCredential("myemail@googlemail.com", "mypassowrd")
smtp.Send(Mail)
lblconfirm.Text = "Sent Successfully"
Catch ex As Exception
lblconfirm.Text = "There was an error"
End Try
End Sub