分享

写回答

发帖

[提问] GD主机的企业邮局如何用国内的域名,asp需要在线发送邮件的

GoDaddy GoDaddy 1863 人阅读 | 10 人回复

发表于 2009-5-11 09:46:05 | 显示全部楼层 |阅读模式

,Deluxe Plan windows 的主机,如何设置邮局,MX,且asp可以使用 cdo组件在线发送的

回答|共 10 个

add.c

发表于 2009-5-11 11:09:18 | 显示全部楼层

http://bbs.idcspy.com/thread-24151-1-1.html

culer

发表于 2009-5-11 11:51:21 | 显示全部楼层

sendUrl="http://schemas.microsoft.com/cdo/configuration/sendusing"
smtpUrl="http://schemas.microsoft.com/cdo/configuration/smtpserver"'Set the mail server configuration
Set objConfig=CreateObject("CDO.Configuration")
objConfig.Fields.Item(sendUrl)=2 'cdoSendUsingPort
objConfig.Fields.Item(smtpUrl)="relay-hosting.secureserver.net"
objConfig.Fields.Update

'Create and send the mail
Set objMail=CreateObject("CDO.Message")
'Use the config object created above
Set objMail.Configuration=objConfig
objMail.From="mail@domain.com"   '(这个邮箱已经可以正常用web发收邮件了,)
objMail.To="myqqnumber@qq.com"
objMail.Subject="subjec"
objMail.TextBody="body"
objMail.Send
Response.Write "邮件发送成功!"
if Err <> 0 then
response.write "<font color=ff0000>"&Err.Description&"</font>"
response.end
end if

邮局配置完了,可以正常的跟QQ邮箱收发信了,但, 这个程序运行了后,出现错误,为什么,这段程序是网上的godaddy通用的windows发邮件的,

错误是:
error '80040211'
/cnlava/test.asp, line 17
这行是(objMail.Send)

[ 本帖最后由 culer 于 2009-5-11 11:52 AM 编辑 ]

add.c

发表于 2009-5-11 11:54:03 | 显示全部楼层

你参考下godaddy中文指南:http://godaddy.idcspy.com/uncategorized/post-email
RAKSmart

culer

发表于 2009-5-11 13:54:55 | 显示全部楼层

on Error Resume Next
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") ="relay-hosting.secureserver.net"
objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
'objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "noreply.sender01@163.com" '这行无意思,可去掉
'objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "你的密码" '这行无意思,可去掉
objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/languagecode") = "0×0804"
objConfig.Fields.Update()
Set objMail.Configuration = objConfig
objMail.Subject = "您的网站有订单"
objMail.From = "testmoney@godaddy.com" '这个发件人好重要,用126或163等的都不可以,你可以随便用xxx@godaddy.com或在godaddy处注册的域名都可以。
objMail.To = "1813376@qq.com"
objMail.BodyPart.ContentTransferEncoding = "7bit"
'如果使用多國語言時,才要設定 Charset
objMail.BodyPart.Charset = "gb2312"

objMail.HTMLBody = "网站订单,请处理<br /><b>不要回复<请处理<br /><b>不要回复<请处理<br /><b>不要回复<请处理<br /><b>不要回复<请处理<br /><b>不要回复<请处理<br /><b>不要回复<请处理<br /><b>不要回复<请处理<br /><b>不要回复<请处理<br /><b>不要回复<请处理<br /><b>不要回复<请处理<br /><b>不要回复<请处理<br /><b>不要回复<请处理<br /><b>不要回复<请处理<br /><b>不要回复</b>"
'objMail.AddAttachment(http://xxxxxx/xxxx.xxx) '或者其他任何正确的url,包括http,ftp,file等等。
objMail.Send
Response.Write "邮件发送成功!"
if Err <> 0 then
response.write "<font color=ff0000>"&Err.Description&"</font>"
response.end
end if


还是不行,提示:
The message could not be sent to the SMTP server. The transport error code was 0x800ccc6f. The server response was 554 The message was rejected because it contains prohibited virus or spam content
我按它那样设置,但还是不行,

add.c

发表于 2009-5-11 15:36:25 | 显示全部楼层

是不是你的smtp没有解析好呢?

帅哥小强

发表于 2009-5-11 15:57:49 | 显示全部楼层

我的问题和楼主一样,得到的提示也一样,以前一直是正常的,大概一个月前突然不能用了的,不是我的问题,是GD的问题,一直没有得到解决,也就是说,GD的WIN主机目前是不支持任何ASP邮件组件的,GD也真是的,为什么不支持JMAIL组件,又不要钱的。
还是PHP好,一些小功能自己的代码就可以搞定,不求爷爷告奶奶的。

[ 本帖最后由 帅哥小强 于 2009-5-11 04:05 PM 编辑 ]

add.c

发表于 2009-5-11 16:02:28 | 显示全部楼层

回复 5# 的帖子

是端口问题么?

帅哥小强

发表于 2009-5-11 16:08:45 | 显示全部楼层

回复 8# 的帖子

版主您好,应该不是端口问题,因为以前一直都很正常的,而且现在用邮件客户端收发还是很正常的,应该是GD的相关组件出问题了。

culer

发表于 2009-5-12 13:30:54 | 显示全部楼层

我的域名直接把NS用gd的,什么都可以不用做,好像要用到的二级域名都会解析好。。。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则