Hello, I have in my web a form to send emails, I'm going to show you the code:
Try
Dim Mail As New MailMessage
Dim SMTP As New SmtpClient("smtp.gmail.com")
Mail.From = New MailAddress(Txtemailcontacto.Text)
SMTP.Credentials = New System.Net.NetworkCredential("dannyemailemail@gmail.com", "mypassword") '<-- Password Here
Mail.To.Add("")
Mail.Subject = (Txtassuntocontacto.Text)
Mail. ...
Go to the complete details ...