本文介绍了使用smtp发送电子邮件,但使用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
现在我尝试向其他人发送电子邮件,但错误显示使用ZOHO发送时操作超时。我找到了解决方案,但仍然无法发送。我该如何解决?
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?
推荐答案
尝试使用PORT:587
Try to use PORT : 587
Smtp_Server.Port = 587
这篇关于使用smtp发送电子邮件,但使用ZOHO操作超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!