用asp做个发邮件功能无法发送
我是打算做一个招聘职位申请功能,但点击申请就弹出发送邮箱网页。是用接受邮件。错误是对不起,邮件发送失败,可能由于服务器登录设置配置不当造成或填写的信息有误,请 确认正确后再进行发送
<html>
<head>
<meta http-equiv="content-type=" content="text/html; charset=gb2312">
</head>
<body>
<%
dim jmail
set jmail=server.createobject("Jmail.message")
jmail.silent=true
jmail.charset="gb2312"
jmail.fromname="fname"
jmail.from="femail"
jmail.addrecipient "hwc*****@,"小黄"
jmail.subject="title"
jmail.mailserverusername="hwc*****@
jmail.mailserverpassword = "******"
jmail.maildomain="WWW.
sendok=jmail.send("smtp.)
if sendok then
response.write "恭喜您,邮件发送成功"
else
response.write "对不起,邮件发送失败,可能由于服务器登录设置配置不当造成或填写的信息有误,请
确认正确后再进行发送!"
end if
%>
<form method="post" action="">
发件人名称:<input type="text" name="fname"><br>
发件人邮箱:<input type="text" name="femail"><br>
收件人名称:<input type="text" name="tname"><br>
收件人邮箱:<input type="text" name="temail"><br>
邮件标题:<input type="text" name="title"><br>
邮件内容:<textarea rows="9" cols="40" name="content"></textarea><br>
<div align="center"><input type="submit" name="submit" value="发送"></div>
</form>
</body>
</html>