怎么实现
<%dim name,msg,sendmail
name="ww"
set msg = server.createobject("jmail.message")
msg.silent = true
msg.logging = true
msg.charset = "gb2312"
msg.mailserverusername = "vilian6688"'输入smtp服务器验证登陆名 (如:email帐号为123456@123.com,则该处为123456)
msg.mailserverpassword = "58"'输入smtp服务器验证密码 (用户email帐号对应的密码)
msg.subject = "dhsh"'信件主题
msg.addrecipient ("vilian6688@163.com")'收件人email
msg.from = "vilian6688@163.com" '发件人email,应该与上面的对应,例中是123456@123.com
if name<>"" then
msg.fromname = "ww"'发件人姓名
end if
msg.body = Session("name")'正文
msg.returnreceipt=true
msg.send ("smtp.163.com.")'smtp服务器地址(企业邮局地址,与前面的对应)
set msg = nothing
if err then
sendmail=err.description
err.clear
else
sendmail="ok"
end if
if sendmail="ok" then
response.write"邮件发送成功,谢谢使用!"
Call ref()
else
response.write"由于系统错误,邮件未能成功发送!"
在这刷新怎么办????????????????????????????????
end if
%>
</body>