raksmart活动促销

分享

写回答

发帖

HostEase主机用CDO订单发件组件的smtp是多少?

回答|共 11 个

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 ...

跟谷歌中国禁止没关系,应该是谷歌邮箱要加密验证,不支持
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

HostEase讨论

HostEase
优惠码:2026
介绍:HostEase是较早开拓中国市场的美国主机商之一,专业提供虚拟主机、香港美国日本服务器、站群服务器和高防服务器等IDC业务,凭借优异性能的产品以及高水准的技术支持而备受国内外用户的欢迎。
查看更多

liuyuan086

发表主题