<%
	sub Jmail(email)
	Dim JMail,SendMail
	Set JMail=Server.CreateObject("JMail.SMTPMail")
	JMail.Logging=True
	JMail.Charset="gb2312"
	JMail.ContentType = "text/html"
	JMail.ServerAddress=SMTPServer
	JMail.Sender=SystemEmail
	JMail.Subject=topic
	JMail.Body=mailbody
	JMail.AddRecipient email
	JMail.Priority=3
	JMail.Execute 
	Set JMail=nothing 
	if err then 
	SendMail=err.description
	err.clear
	else
	SendMail="OK"
	end if
	end sub

	sub Cdonts(email)
	
	dim  objCDOMail,SendMail
	Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
	objCDOMail.From =SystemEmail
	objCDOMail.To =email
	objCDOMail.Subject =topic
	objCDOMail.BodyFormat = 0 
	objCDOMail.MailFormat = 0 
	objCDOMail.Body =mailbody
	objCDOMail.Send
	Set objCDOMail = Nothing
	if err then 
	SendMail=err.description
	err.clear
	else
	SendMail="OK"
	end if
	end sub

	sub aspemail(email)
	dim mailer,recipient,sender,subject,message
	dim mailserver,result,SendMail
	Set mailer=Server.CreateObject("ASPMAIL.ASPMailCtrl.1")  
	recipient=email
	sender=SystemEmail
	subject=topic
	message=mailbody
	mailserver=SMTPServer
	result=mailer.SendMail(mailserver, recipient, sender, subject, message)
	if err then 
	SendMail=err.description
	err.clear
	else
	SendMail="OK"
	end if
	end sub

	sub Emailbody(body)
	Emailbody=Emailbody &"<style>A:visited {	TEXT-DECORATION: none	}"
	Emailbody=Emailbody &"A:active  {	TEXT-DECORATION: none	}"
	Emailbody=Emailbody &"A:hover   {	TEXT-DECORATION: underline overline	}"
	Emailbody=Emailbody &"A:link 	  {	text-decoration: none;}"
	Emailbody=Emailbody &"A:visited {	text-decoration: none;}"
	Emailbody=Emailbody &"A:active  {	TEXT-DECORATION: none;}"
	Emailbody=Emailbody &"A:hover   {	TEXT-DECORATION: underline overline}"
	Emailbody=Emailbody &"BODY   {	FONT-FAMILY: ËÎÌå; FONT-SIZE: 9pt;}"
	Emailbody=Emailbody &"TD	   {	FONT-FAMILY: ËÎÌå; FONT-SIZE: 9pt	}</style>"
	Emailbody=Emailbody &"<TABLE border=0 width='95%' align=center><TBODY><TR>"
	Emailbody=Emailbody &"<TD valign=middle align=top>"
	Emailbody=Emailbody & body
	Emailbody=Emailbody &"</TD></TR></TBODY></TABLE><br><hr width=95% size=1>"
	Emailbody=Emailbody & Copyright & " &nbsp;&nbsp; " & Version
	Emailbody=mailbody
	end sub
%>