我在 IIS 7.5 上使用 HTMLBody 的 CDOSYS 有问题
简单地说,这不起作用:
Set Mail = CreateObject("CDO.Message")
With Mail
.Subject = "My mail test"
.From = "me@localhost"
.To = "myrealmail@mydomain.com"
.HTMLBody = "My body message"
.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
.Configuration.Fields.Update
.Send
End With
Set Mail = Nothing
并在行抛出一个神秘的“CDO.Message.1 error '80040605' Unknown Error”
.HTMLBody = "My body message"
如果我改变它没问题
.TextBody = "My body message"
请问,你有解决这个问题的办法吗?
提前致谢