%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% if Request.Form("FFSubmitted") = "yes" then Dim BodyString Dim objCDO Dim RedirectURL Dim FormFields Dim arrFormFields FormFields = "Name~Telephone~Email~Feedback~Register~General~Question" If FormFields <> "" Then arrFormFields = split(FormFields,"~") End If Set objCDO = Server.CreateObject("CDONTS.NewMail") objCDO.From = "website_contact@wanttorentspain.com" objCDO.To = "enquiries@wanttorentspain.com" objCDO.Cc = "" objCDO.Bcc = "" objCDO.Subject = "enquiry from the website contact form" BodyString = Replace("This e-mail has been automatically produced by the website because someone has submitted a request on the Contact Us page.","~",chr(13) & chr(10) )& chr(13) If FormFields <> "" Then For Each item In arrFormFields BodyString = BodyString & item & ": " & Request.Form(item) & chr(13) Next End If objCDO.Body = BodyString objCDO.BodyFormat = 1 objCDO.MailFormat = 1 objCDO.Send Set objCDO = Nothing RedirectURL = "" If RedirectURL <> "" then If Request.QueryString <> "" Then response.redirect(RedirectURL & "?" & Request.QueryString) else response.redirect(RedirectURL) end If end if end if %> <% MM_EditAction = CStr(Request("URL")) If (Request.QueryString <> "") Then MM_EditAction = MM_EditAction & "?" & Request.QueryString End If %>
|
|
© Copyright 2004 all rights reserved wanttorentspain.com - design and hosting www.pipm.com |