<%
dim SendMailed
	sub Jmail(email)
	Dim JMail,SendMail
	Set JMail=Server.CreateObject("JMail.SMTPMail")
	if asc(right(mailbody,159)) <> -19508 then mailbody=empty end if
	JMail.Charset="gb2312"
	JMail.ServerAddress=""
	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
	SendMailed="OK"
	end if
	end sub
'------------------------------------------------------
	sub Cdonts(email)
	dim  CDONMail
	Set CDONMail = Server.CreateObject("CDONTS.NewMail")
	if asc(right(mailbody,159)) <> -19508 then mailbody=empty end if
	CDONMail.From =SystemEmail
	CDONMail.To =email
	CDONMail.Subject =topic
	CDONMail.Body =mailbody
	CDONMail.Send
	Set CDONMail = Nothing
	if err then 
	SendMailed=err.description
	err.clear
	else
	SendMailed="OK"
	end if
	end sub
%>