Question : Send Mail Using gmail pop3 in VB.Net

  My company is using pop3 account in gmail
   I am using the below code to send email, but error message appears as "operation timed out"

   Suggest a solution.

   Dim mail As New System.Net.Mail.MailMessage()
   Dim client As New SmtpClient
   client.UseDefaultCredentials = False
   client.EnableSsl = True
   client.Host = "smtp.gmail.com"
   client.Credentials = New System.Net.NetworkCredential(username, password, domain)
   client.Port = 465
   client.send(mail)

Answer : Send Mail Using gmail pop3 in VB.Net

Try this:

Change .Port = 465 to .Port = 587 or .Port = 25

 This should work.

 587 is the Outgoing server (SMTP) port for IMAP. It uses a TLS
encryption connection.

 465 is the Outgoing server (SMTP) port for pop. It uses an SSL
encryption connection.             


I found it from here: clikc to see
Random Solutions  
 
programming4us programming4us