Function gethtml (Surl, surl01 ){
VaR xmlrequest;
Xmlrequest = new activexobject ("msxml2.serverxmlhttp ");
Xmlrequest. Open ("Post", Surl, false );
Xmlrequest. setRequestHeader ("Content-Type", "application/X-WWW-form-urlencoded ");
Xmlrequest. Send (surl01 );
Return xmlrequest. responsetext;
}
// Send an email
Function Sendmail (email, title, note, CC ){
Try {
VaR _ codePage = session. codePage; // obtain the original code of the page.
Session. codePage = 65001; // set it to 65001
VaR code = "w00003 ";
VaR Title = server. urlencode (title );
VaR note = server. urlencode (note );
VaR url = "123.asp ";
If (! CC) CC = "";
VaR url01 = ("sender =" + email + "& CC =" + CC + "& Title =" + title + "& code =" + code + "& note =" + note );
// Writeln (note );
// Writeln (URL + "? "+ Url01 );
// Response. End ();
Gethtml (URL, url01 );
Session. codePage = _ codePage; // restore to original code
} Catch (e ){}
}
// Send email end
// Send SMS
Function sendsms (sender, note ){
Try {
VaR _ codePage = session. codePage;
Session. codePage = 65001;
VaR code = "w00003 ";
VaR note = server. urlencode (note );
VaR url = "123.asp ";
VaR url01 = "sender =" + sender + "& code =" + code + "& note =" + note;
// Writeln (url01 );
// Response. End ();
Gethtml (URL, url01 );
Session. codePage = _ codePage;
} Catch (e ){}
}
// Send the SMS end