当我用ASP做了一个邮件自动寄信服务系统里用到“set objmail=server.createobject("cdonts.newmail")”这么一个语句,可是出现的错误就是“错误类型:
Server 对象, ASP 0177 (0x800401F3)
无效的类别字符串”
指的就是"cdonts.newmail"这个对象无效,请问我应该怎样改正或者用其它的对象来替换它?????
...全文
714打赏收藏
set objmail=server.createobject("cdonts.newmail")
当我用ASP做了一个邮件自动寄信服务系统里用到“set objmail=server.createobject("cdonts.newmail")”这么一个语句,可是出现的错误就是“错误类型: Server 对象, ASP 0177 (0x800401F3) 无效的类别字符串” 指的就是"cdonts.newmail"这个对象无效,请问我应该怎样改正或者用其它的对象来替换它?????
set objmail=server.createobject("CDONTS.NewMail")
objmail.from=frommail
objmail.to=tomail
objmail.subject=subject
objmail.body=content
'将邮件的格式设成HTML,若这两行省略,则使用默认的TXT格式
objmail.bodyformat=0
objmail.mailformat=0
objmail.send
response.write"你的邮件已经寄出去了."
%>
然后我把
objmail.bodyformat=0
objmail.mailformat=0
这二行删了,运行时,可以在收件人邮箱中得到如下错误!!!
{
This message is generated by COREMAIL email system.
I'm sorry to have to inform you that the message returned
The message to lizhanfei-2002@163.com is bounced because : Rcpt queued timeout