CDONTS邮件发送出错!!急,在线等!!!
下面是我写的邮件发送程序:
<%
Dim objNewMail
Dim strTo '收件人Email
Dim strSubject '信件主题
Dim txtBody '信件正文
With Request
strTo = "longrichardson@163.com"
strSubject = "NewMail"
txtBody = "This is the content!"
End With
Set objNewMail = Server.CreateObject("CDONTS.NEWMAIL")
With objNewMail
'.From = "longrichardson@163.com"
.To = strTo
.Subject= strSubject
.Body = txtBody
End With
on error resume next
objNewMail.Send
Response.write Err.description'并没有提示出错
Set objNewMail = nothing
%>
发送没有提示任何的出错信息,可是收件信箱却没有收到任何的信件,请各位帮忙,谢谢!