我的机子上装了Jmail 4.4,每次都提示发送成功,但我的邮箱就是收不到,代码如下那位大哥帮我看看:
~~~~~~~~~~~~~~~~~~~~~~~~~mail.asp~~~~~~~~~~~~~~
<html>
<head>
<title>用jmail组件发送邮件</title>
</head>
<body>
<center>
<h1>用jmail组件发送邮件</h1>
</center>
<hr>
<form method="post" action="post.asp">
请如实填写以下内容:<br>
邮件主题:<br>
<input type="text" size="25" name="subject"><br>
收件人邮箱:<br>
<input type="text" size="25" name="toemail"><br>
发信人邮箱:<br>
<input type="text" size="25" name="email"><br>
发信人姓名:<br>
<input type="text" size="25" name="name"><br>
详细内容:<br>
<textarea name="body" cols="40" rows="5" wrap="physical"></textarea>
<BR><input type="submit" value="寄出">
</form>
</body>
</html>
~~~~~~~~~~~~~~~~~~~~~~~~~~post.asp~~~~~~~~~~~~~~~~~~~~~~~~~
<html>
<body>
<%dim name,msg,sendmail
name=request.form("name")
set msg = server.createobject("jmail.message")
msg.silent = true
msg.logging = true
msg.charset = "gb2312"
msg.mailserverusername = "awaz1825"'输入smtp服务器验证登陆名 我的新浪邮箱
msg.mailserverpassword = "2872135"'输入smtp服务器验证密码 (用户email帐号对应的密码)
msg.subject = request.form("subject")'信件主题
msg.addrecipient request.form("toemail")'收件人email
msg.from = "awaz@sina.com" '发件人email,应该与上面的对应,
if name<>"" then
msg.fromname = name'发件人姓名
end if
msg.body = request.form("body") '正文
msg.returnreceipt=true
msg.send ("smtp.sina.com.cn")'smtp服务器地址(企业邮局地址,与前面的对应)
set msg = nothing
if err then
sendmail=err.description
err.clear
else
sendmail="ok"
end if
if sendmail="ok" then
response.write"邮件发送成功,谢谢使用!"
else
response.write"由于系统错误,邮件未能成功发送!"
end if
%>
</body>
</html>
[求助]Jmail发送成功,邮箱里却收不到!