主题:[原创]请大家帮帮看哪里错了!
<%
Dim dindan
dindan="2008326-12054"'request("inBillNo")
Recmail="rd510@126.com"'request.form("Recmail") '
inBillNo="2008326-00000"
Dim jmail,HTML
HTML="<HTML><HEAD><meta http-equiv=""Content-Type"" content=""text/html; charset=gb2312""><link rel=""stylesheet"" href=""http://www.z-tek.com.cn/shop.css"" type=""text/css""><link href=""http://www.z-tek.com.cn/css.css"" rel=""stylesheet"" type=""text/css"">"
HTML=HTML&"<style type=""text/css""><!--body {background-color: #FFFFFF;margin-top: 0px;margin-bottom: 0px;}.style1 {font-size:15pt}--></style>"
HTML=HTML&"</HEAD><BODY>"
HTML=HTML&"您好!<br><br>"
HTML=HTML&"这是客户在网上下的订单,请点击下面的链接去查看订单:<br><br>"
HTML=HTML&"<a href="&""&"http://www.z-tek.com.cn/vworder.asp?OrderNum="&inBillNo&""&">"
HTML=HTML&""&inBillNo&"</a><br><br>"
HTML=HTML&"到这里 <a href=""http://www.z-tek.com.cn/guanli/login.asp"">登陆</a> 去处理订单"
HTML=HTML&"</BODY></HTML>"
set jmail=server.createobject("Jmail.message")
jmail.silent=true
jmail.charset="gb2312"
jmail.ContentType="text/html"
jmail.fromname="网上订单" '这里是发件人名称,可以从数据库或表单中取值
jmail.from="recmail" '这里是发件人邮箱,可以从数据库或表单中取值,但格式一定要正确
jmail.addrecipient "qinjuxiong380@126.com" '收件人邮箱地址,收件人姓名
JMail.AddRecipientCC("qinjuxiong380@126.com")
jmail.subject="网上订单,来自于:"&recmail '发送邮件标题,该值可以从数据库或表单中取值
jmail.body = HTML
jmail.mailserverusername="qinjuxiong380" 'smtp服务器登录用户名,邮件发送服务器登录名称
jmail.mailserverpassword="198010" 'smtp服务器登录密码,邮件发送服务器登录密码
jmail.maildomain="mail.126.com" '邮件服务器域名,邮件发送服务器域名
sendok=jmail.send("smtp.126.com") 'smtp服务器名,smtp服务器名称
response.Write(html)'测试输出
if sendok then
response.write "<p align=center>温馨提示:系统已将您的订单信息同步发送到我们的邮箱!</p>"
else
response.write "<p align=center>温馨提示:系统未能将您的订单信息同步发送到我们的邮箱!</p>"
end if
set jmail=nothing
%>
Dim dindan
dindan="2008326-12054"'request("inBillNo")
Recmail="rd510@126.com"'request.form("Recmail") '
inBillNo="2008326-00000"
Dim jmail,HTML
HTML="<HTML><HEAD><meta http-equiv=""Content-Type"" content=""text/html; charset=gb2312""><link rel=""stylesheet"" href=""http://www.z-tek.com.cn/shop.css"" type=""text/css""><link href=""http://www.z-tek.com.cn/css.css"" rel=""stylesheet"" type=""text/css"">"
HTML=HTML&"<style type=""text/css""><!--body {background-color: #FFFFFF;margin-top: 0px;margin-bottom: 0px;}.style1 {font-size:15pt}--></style>"
HTML=HTML&"</HEAD><BODY>"
HTML=HTML&"您好!<br><br>"
HTML=HTML&"这是客户在网上下的订单,请点击下面的链接去查看订单:<br><br>"
HTML=HTML&"<a href="&""&"http://www.z-tek.com.cn/vworder.asp?OrderNum="&inBillNo&""&">"
HTML=HTML&""&inBillNo&"</a><br><br>"
HTML=HTML&"到这里 <a href=""http://www.z-tek.com.cn/guanli/login.asp"">登陆</a> 去处理订单"
HTML=HTML&"</BODY></HTML>"
set jmail=server.createobject("Jmail.message")
jmail.silent=true
jmail.charset="gb2312"
jmail.ContentType="text/html"
jmail.fromname="网上订单" '这里是发件人名称,可以从数据库或表单中取值
jmail.from="recmail" '这里是发件人邮箱,可以从数据库或表单中取值,但格式一定要正确
jmail.addrecipient "qinjuxiong380@126.com" '收件人邮箱地址,收件人姓名
JMail.AddRecipientCC("qinjuxiong380@126.com")
jmail.subject="网上订单,来自于:"&recmail '发送邮件标题,该值可以从数据库或表单中取值
jmail.body = HTML
jmail.mailserverusername="qinjuxiong380" 'smtp服务器登录用户名,邮件发送服务器登录名称
jmail.mailserverpassword="198010" 'smtp服务器登录密码,邮件发送服务器登录密码
jmail.maildomain="mail.126.com" '邮件服务器域名,邮件发送服务器域名
sendok=jmail.send("smtp.126.com") 'smtp服务器名,smtp服务器名称
response.Write(html)'测试输出
if sendok then
response.write "<p align=center>温馨提示:系统已将您的订单信息同步发送到我们的邮箱!</p>"
else
response.write "<p align=center>温馨提示:系统未能将您的订单信息同步发送到我们的邮箱!</p>"
end if
set jmail=nothing
%>