Hi everybody,
I made a code in VB 2008, and when I run it, it gives me an exception, I'd like you to help me it because I'm trying and it doesn't work.
Code:
message.From = New MailAddress(TextBox4.Text)
message.To.Add(TextBox3.Text)
message.Subject = TextBox5.Text
message.Body = TextBox6.Text
message.Priority = MailPriority.Normal
smtp.EnableSsl = True
smtp.Port = "465"
smtp.Host = "smtp.gmail.com"
smtp.Credentials = New Net.NetworkCredential(TextBox1.Text, TextBox2.Text)
smtp.Send(message)
MsgBox("Message envoyé")
Exception is : Le délai d'attente de l'opération a expiré
it's in the line of """"smtp.Send(message)""""
please, there is someone to help me
thank you ^^
No replies to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









