VB.NET中,如何避免使用ZOHO SMTP发送邮件时出现的超时问题?

2026-05-06 11:131阅读0评论SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计160个文字,预计阅读时间需要1分钟。

VB.NET中,如何避免使用ZOHO SMTP发送邮件时出现的超时问题?

csharpDim smtpServer As New SmtpClientDim e_mail As New MailMessagesmtpServer.UseDefaultCredentials=FalsesmtpServer.Credentials=New Net.NetworkCredential(abc@zoho.com, abc123)smtpServer.Port=465smtpServer.EnableSsl=TruesmtpServer.Host=smtp.zoho.com

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

现在我尝试向其他人发送电子邮件,但错误显示操作超时,当使用ZOHO发送时.我找到了解决方案,但仍然无法发送.我该如何解决?

尝试使用PORT:587

Smtp_Server.Port = 587

VB.NET中,如何避免使用ZOHO SMTP发送邮件时出现的超时问题?

本文共计160个文字,预计阅读时间需要1分钟。

VB.NET中,如何避免使用ZOHO SMTP发送邮件时出现的超时问题?

csharpDim smtpServer As New SmtpClientDim e_mail As New MailMessagesmtpServer.UseDefaultCredentials=FalsesmtpServer.Credentials=New Net.NetworkCredential(abc@zoho.com, abc123)smtpServer.Port=465smtpServer.EnableSsl=TruesmtpServer.Host=smtp.zoho.com

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

现在我尝试向其他人发送电子邮件,但错误显示操作超时,当使用ZOHO发送时.我找到了解决方案,但仍然无法发送.我该如何解决?

尝试使用PORT:587

Smtp_Server.Port = 587

VB.NET中,如何避免使用ZOHO SMTP发送邮件时出现的超时问题?