1
我想要獲得與Outlook(微軟Web電子郵件)SMTP中繼工作的經典ASP頁面。我收到以下錯誤:經典的ASP電子郵件不能與Outlook中繼
CDO.Message.1 error '80040213'
The transport failed to connect to the server.
我的代碼看起來像
dim objEmail
Set objEmail = Server.CreateObject("cdo.message")
objEmail.To = list
objEmail.From = "[email protected]"
objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpServer
objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = username
objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = password
objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = 1
objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 587
objEmail.Configuration.Fields.Update
objEmail.Send
我的Gmail測試,這件事情片斷正常工作與它。我想我在配置Outlook中缺少一些東西SMTP
你可以啓用這個「cdo」郵件程序的詳細日誌並查看與服務器的詳細對話嗎? GMAIL很可能不會100%與Microsoft的實施/設置兼容。 –