关于cdo发邮件出错的问题,错误号:0x800ccc15

lzliming 2003-11-28 05:13:54
错误信息
The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available

代码
Imports System.Web.Mail

Public Class WebForm1
Inherits System.Web.UI.Page

#Region " Web 窗体设计器生成的代码 "

'该调用是 Web 窗体设计器所必需的。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: 此方法调用是 Web 窗体设计器所必需的
'不要使用代码编辑器修改它。
InitializeComponent()
End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

'SmtpMail.SmtpServer = "LIUZHMAIL"
'SmtpMail.Send("lim@liuzh.moroa.cr", "ddk@liuzh.moroa.cr", "dk", "d")

''

Dim myMsg
Dim myConfig
Dim Flds

Const cdoSendUsingPort = 2
Const cdoBasic As Integer = 1

myMsg = CreateObject("CDO.Message")
myConfig = CreateObject("CDO.Configuration")
Flds = myConfig.Fields

With Flds
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "www.163.net"
.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "xx"
.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "xxx"
.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
.Update()
End With

With myMsg
.Configuration = myConfig
.To = "xx@163.net"
.From = "xx@163.net"
.Subject = "xx"
.HTMLBody = "xx"
.Send()
End With

myMsg = Nothing
myConfig = Nothing
Flds = Nothing

End Sub


End Class

?
...全文
245 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
lzliming 2003-11-30
  • 打赏
  • 举报
回复
up
lzliming 2003-11-29
  • 打赏
  • 举报
回复
up
lzliming 2003-11-28
  • 打赏
  • 举报
回复
查了一下
0x800CCC15 是:无法开启 Windows Socket
????
谁帮我?
hiaming 2003-11-28
  • 打赏
  • 举报
回复
在QQ里收到你的信息,可惜我是用C#的,帮不了你。

建议注意下面几点:
1。一定要引用名称空间
2。SMTP服务器是不是要验证身份。
3。使用该组件还得在服务器上安装IIS中带的SMTP服务才行吧!
lzliming 2003-11-28
  • 打赏
  • 举报
回复
有点建设性的吗?
elite2018 2003-11-28
  • 打赏
  • 举报
回复
www.163.net 's smtp need to certified user
elite2018 2003-11-28
  • 打赏
  • 举报
回复
需要添加引用
robin_xin_xin 2003-11-28
  • 打赏
  • 举报
回复
同意楼上的
acewang 2003-11-28
  • 打赏
  • 举报
回复
如果你用CDO发邮件,需要添加引用
http://authors.aspalliance.com/wisemonk/view.aspx?id=AO070122-All
kandyasp 2003-11-28
  • 打赏
  • 举报
回复
把smtp.server去掉看看行不行?

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧