% @ language="VBScript"%> <% Function formatText(ByVal theText) theText=replace(theText,vbCRLF&vbCRLF,"
")
theText=replace(theText,vbCRLF,"
")
formattext=theText
END FUNCTION
'Procedure to send email
sub sendmail(fromwho,towho,subject,body)
dim mymail
set mymail=server.CreateObject("CDONTS.NewMail")
mymail.From=fromwho
mymail.To=towho
mymail.Subject=subject
mymail.Body=body
mymail.MailFormat=0
mymail.BodyFormat=0
mymail.Send
set mymail=nothing
end sub
FromWho=trim(Request.Form("FromWho"))
ToWho=trim(Request.Form("recipient"))
Subject=trim(Request.Form("subject"))
bgcolor=trim(Request.Form("bgcolor"))
backurl=trim(Request.Form("backurl"))
dim Body
Body="
| "& thing & " | " &formatText(trim(Request.Form(thing)))&" |