Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send email using smtp but operation timed out using ZOHO

Dim Smtp_Server As New SmtpClient
Dim e_mail As New MailMessage()
Smtp_Server.UseDefaultCredentials = False
Smtp_Server.Credentials = New Net.NetworkCredential([email protected],abc123)
Smtp_Server.Port = 465
Smtp_Server.EnableSsl = True
Smtp_Server.Host = "smtp.zoho.com"
e_mail = New MailMessage()
e_mail.From = New MailAddress([email protected])
e_mail.To.Add("[email protected]")
e_mail.Subject = "Testing"
e_mail.IsBodyHtml = False
Smtp_Server.Send(e_mail)
Return True

Now I trying to send email to other person but the error show me the operation timed out, when using ZOHO to send. And I got find the solution but still fail to send. How can I solve it?

like image 827
askingPPl Avatar asked Mar 22 '23 12:03

askingPPl


1 Answers

Try to use PORT : 587

Smtp_Server.Port = 587
like image 62
Otto Kanellis Avatar answered Apr 01 '23 23:04

Otto Kanellis