大家好呀,小女子初来乍到,有礼了。我是带着问题来的,请侠侠们帮帮我!
下面是做了一个直接提交到邮箱的表单的sent.asp。可是怎么也调试不出;帮忙诊断下吧,谢谢
<%
Dim idearmail, contentId
iname=Request("iname")
why=Request("why")
tel=Request("itel")
email=Request("iemail")
idear=Request("idear")
mailbody=""诉求类型:"&why&vbcrlf&"发件人:"&iname&vbcrlf&"我的邮箱:"&email&vbcrlf&"我的电话:"&tel&vbcrlf&"我的"&why&":"&idear"
Set idearmail = Server.CreateObject("JMail.Message")
idearmail.Charset = "gb2312"
idearmail.From =email
idearmail.FromName = iname
idearmail.Subject = "意见"
//idearmail.Subject = iname&"对***"why
idearmail.body=mailbody
idearmail.MailServerUserName = "asia"
idearmail.MailServerPassword = "7311"
idearmail.Priority = 3
idearmail.AddHeader "Originating-IP", Request.ServerVariables("REMOTE_ADDR")
idearmail.AddRecipient("***@hotmail.com")
isgo=idearmail.Send("用户名:密码@邮件服务器")
if isgo then
msg="提交成功!"
else
msg="发送失败!"
end if
idearmail.Close()
Set idearmail = Nothing
%>