Jmail4.3问题,晕死了。
提示
no recipients
<%
on error resume next
set msg=server.createobject("jmail.message")
msg.from="xxxx@163.com"
msg.fromname="lqflsh"
msg.subject="hi,祝你成功!"
msg.body="第一次发邮件哦。"
msg.send("mail.xxxx.com:25") '我确定错误是这行。
response.write err.description
%>
为什么会是这种提示啊?
我在书上看的用上面的方法,下面的方法是空间商提供的,是不是版本问题啊?
下面的方法好用。
<html>
<head>
<title>发送表单</title>
<body>
<%
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.ServerAddress = "mail.xxxx.com:25"
JMail.Sender = "root@xxx.com" '此处如果填写不是在那个空间的邮箱就会错,为什么?
JMail.Subject = "hi!又一次了。"
JMail.AddRecipient "xxxx@163.com"
JMail.Body = "大家好"
JMail.Priority = 1
JMail.Execute
%>
您递交邮件已顺利发出,感谢您的意见和建议!
</body>
</html>