HostEase主机用CDO订单发件组件的smtp是多少?
|
|
liuyuan086
发表于 2015-1-19 13:26:12
|
显示全部楼层
<%
Set objMail = Server.CreateObject("CDO.Message")
Set objConfig = Server.CreateObject ("CDO.Configuration")
objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") =
objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") =
objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") =
objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/languagecode") = "0x0804"
objConfig.Fields.Update()
Set objMail.Configuration = objConfig
objMail.BodyPart.Charset = "utf-8"
objMail.From =
objMail.To =
objMail.Subject =
objMail.HTMLBody =
'objMail.AddAttachment(http://xxxxxx/xxxx.xxx)
objMail.Send
'Response.Write "邮件发送成功!"
%>
smtp.qq.com 的QQ邮箱是成功的,其它暂时没试。要是这个代码还不成功,你问下中文客服,看服务器开启25端口没,我开始服务器没法开启25端口,后来换了,我也找了好多人改,才成功,折腾死我了 |
|
|
|
|
|
|
|
|
|
|
liuyuan086
发表于 2015-1-19 13:32:38
|
显示全部楼层
catmonkey 发表于 2015-1-19 09:38 AM
谷歌貌似被中国禁止掉了,不知道可是这个原因。objConfig.Fields.Item(smtpUrl)="relay-hosting.securese ...
跟谷歌中国禁止没关系,应该是谷歌邮箱要加密验证,不支持 |
|
|
|
|
|
|
|
|