主题:cdonts收不到邮件怎么回事?
我编的是CDONTS的邮箱,调试完之后 语句没有错误,可以执行到最后,在页面上也显示“发送成功” 可是发完了我的邮箱就是收不到所发的邮件,您说可能是什么原因? 这种邮箱要的那个插件我也有
<%
tomail=request("tomail")
name1=request("name")
idcard=request("idcard")
address=request("address")
phone=request("phone")
email=request("email")
subject=request("subject")
content=request("content")
title=request("title")
Sub SendCMail(subject,tomail,name1,idcard,address,phone,email,content,title)
'建立一个CDONTS.NEWMAIL对象
set objmail=server.createobject("cdonts.newmail")
'设置寄件人
objmail.from=name1
objmail.from=idcard
objmail.from=address
objmail.from=phone
objmail.from=email
'设置收件人
objmail.to=tomail
'设置邮件主题
objmail.subject=subject
'设置邮件内容
objmail.body=content&title&email&name1&idcard&address&phone &tomail
'将邮件格式设成HTML,若没有这两行,则默认的是txt格式
'objmail.bodyformat=0
'objmail.mailformat=0
objmail.send
end sub
response.write"<script language=javascript>alert('你已经成功寄出了!!!');</script>"
response.write"<script language=javascript>window.location.href='http://www.wzsky.net/html/article/asp/asp2/vbscript:history.back'</script>"
%>
<%
tomail=request("tomail")
name1=request("name")
idcard=request("idcard")
address=request("address")
phone=request("phone")
email=request("email")
subject=request("subject")
content=request("content")
title=request("title")
Sub SendCMail(subject,tomail,name1,idcard,address,phone,email,content,title)
'建立一个CDONTS.NEWMAIL对象
set objmail=server.createobject("cdonts.newmail")
'设置寄件人
objmail.from=name1
objmail.from=idcard
objmail.from=address
objmail.from=phone
objmail.from=email
'设置收件人
objmail.to=tomail
'设置邮件主题
objmail.subject=subject
'设置邮件内容
objmail.body=content&title&email&name1&idcard&address&phone &tomail
'将邮件格式设成HTML,若没有这两行,则默认的是txt格式
'objmail.bodyformat=0
'objmail.mailformat=0
objmail.send
end sub
response.write"<script language=javascript>alert('你已经成功寄出了!!!');</script>"
response.write"<script language=javascript>window.location.href='http://www.wzsky.net/html/article/asp/asp2/vbscript:history.back'</script>"
%>