Hi there,

I need to translate the following code to "classic" vbscript... can
someone help me out?

thanks!

<script language="C#" runat="server">


public string GetTemplate()
{
StringBuilder aBuilder = new StringBuilder();
StreamReader re = File.OpenText("d:\\www\\mysite\\www\\includes\
\mail_template.htm");

string input = null;
while ((input = re.ReadLine()) != null) { aBuilder.Append(input); }
re.Close(); return aBuilder.ToString(); }


private void btnSend_Click(object sender, System.EventArgs e)
{

MailMessage msg = new MailMessage();

msg.To = txtTo.Text;
msg.Bcc = "spam@me.com";
msg.From = txtFrom.Text;
msg.Subject = txtFromName.Text + " has a tip for you";
msg.BodyFormat = System.Web.Mail.MailFormat.Html;
msg.Body =
GetTemplate().Replace("NameR",txtFromName.Text).Replace("IngridR",txtIngr.Text).Replace("PrepR",txtPrep.Text).Replace("ServesR",txtServes.Text).Replace("RecNamR",txtRecName.Text);; //.Replace("UrlR",Request.ServerVariables["HTTP_REFERER"]);


SmtpMail.Send(msg);

Response.Redirect("succes.asp");

}


</script>