<%
function send_jmail(j_sendname,j_Subject,j_HTMLBody,j_name,j_email)
  on error resume next
  Dim Jmail
  Set Jmail=server.createobject("Jmail.Message")
  Jmail.Charset="gb2312"
  Jmail.Priority=2					'优先级
  Jmail.MailServerUserName="sczywj@163.com"		'这里换成您的SMTP验证帐号
  Jmail.MailServerPassword="wangjie8007"		'这里填写您的SMTP认证密码
  Jmail.From=j_email					'发信人邮件地址
  Jmail.FromName=j_name					'发信人姓名
  Jmail.Subject=j_Subject				'信件主题
  Jmail.AddRecipient j_sendname				'收信人地址
  Jmail.Body=j_HTMLBody					'TXT Mailbody参数是信件正文
  'JMail.HTMLBody=j_HTMLBody				'HTML信件正文
  Jmail.Send("smtp.163.com")				'发信的邮件服务器

  send_jmail="ok"
  if err then
    err.clear
    send_jmail="no"
  end if
  Set Jmail=nothing
end function
%>