% @language = VBScript %> <% Option Explicit %>
<% Dim strName, strEmail, strFriend, strChoice1 strName = Trim(Request("name")) strEmail = Trim(Request.Form("email")) strFriend = Trim(Request.Form("friend")) strChoice1 = Trim(Request.Form("choice1")) 'Write the user's name to a cookie Response.Cookies("name") = strName 'Set the cookie to expire in a week Response.Cookies("name").Expires = Date() + 7 If (strName <> "" And strEmail <> "" And strFriend <> "" And strChoice1 <> "") Then Dim objMail, htmlText Set objMail = Server.CreateObject("CDONTS.NewMail") htmlText = "" htmlText = htmlText & "
" htmlText = htmlText & "| " htmlText = htmlText & " |
Love Santa
" htmlText = htmlText & "" htmlText = htmlText & "" htmlText = htmlText & "" htmlText = htmlText & "" objMail.From = "santa@thanksanta.com" objMail.To = strEmail objMail.Subject = "Letter From Santa Claus" objMail.BodyFormat = 0 objMail.MailFormat = 0 objMail.Body = htmlText objMail.AttachUrl Server.MapPath("images/thanksantaemailbanner.gif"), "images/thanksantaemailbanner.gif" objMail.AttachUrl Server.MapPath("images/santaphoto.jpg"), "images/santaphoto.jpg" objMail.AttachUrl Server.MapPath("images/sv2.gif"), "images/sv2.gif" objMail.Send Response.Redirect "christmas-2003-thank-you.asp" Set objMail = Nothing Else %>
|
Send your THANK YOU letter to Santa. |
©Santa's
Village & Sportsland
Santa's Village Road
PO Box 398
Bracebridge, ON P1L 1T7
(705) 645-2512