<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> Enquiries.

front of villa

logo


Si vous aimeriez recevoir une brochure, demandez de faire un réserver ou a simplement une question de ce pays stupéfiant ou notre villa nous contacte s'il vous plaît en complétant la forme au dessous de ou en téléphonant ou des nombres montrés et nous répondrons aussi rapidement que nous pouvons.

Sally:  0044 (0) 1948 770509       or    Liz:  0044 (0) 1403 741409


   
Name :
Email Address :
Telephone Number :
Address :
Enquiry :
How Did You Find Us:

<% If Action = "SendEmail" Then ' Here we quickly check/validate the information entered ' These checks could easily be improved to look for more things If IsValidEmail(ContactUs_Email) = "False" Then IsError = "Yes" Response.Write("You did not enter a valid email address.
") End If If ContactUs_Name = "" Then IsError = "Yes" Response.Write("You did not enter a Name.
") End If If ContactUs_Address = "" Then IsError = "Yes" Response.Write("Please could you enter your address.
") End If End If ' If there were no input errors and the action of the form is "SendEMail" we send the email off If Action = "SendEmail" And IsError <> "Yes" Then Dim strBody ' Here we create a nice looking html body for the email strBody = strBody & "Contact Us Form submitted at " & Now() & vbCrLf & "

" strBody = strBody & "From http://" & Request.ServerVariables("HTTP_HOST") & vbCrLf & "
" strBody = strBody & "IP " & Request.ServerVariables("REMOTE_ADDR") & vbCrLf & "
" strBody = strBody & "Name" & " : " & " " & Replace(ContactUs_Name,vbCr,"
") & "
" strBody = strBody & "Email" & " : " & " " & Replace(ContactUs_Email,vbCr,"
") & "
" strBody = strBody & "Telephone Number" & " : " & " " & Replace(ContactUs_Telno,vbCr,"
") & "
" strBody = strBody & "Address :
" & Replace(ContactUs_Address,vbCr,"
") & "

" strBody = strBody & "Special Notes & Requirements :
" & Replace(ContactUs_Notes,vbCr,"
") & "

" strBody = strBody & "How Did You Find Us" & " : " & " " & Replace(ContactUs_Howfind,vbCr,"
") & "
" strBody = strBody & "
" Dim ObjSendMail Set ObjSendMail = CreateObject("CDO.Message") 'This section provides the configuration information for the remote SMTP server. ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network). ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpserver ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False) ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = youremail ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = yourpassword ObjSendMail.Configuration.Fields.Update 'End remote SMTP server configuration section== ObjSendMail.To = youremail ObjSendMail.Subject = ContactUs_Date ObjSendMail.From = ContactUs_Email ' we are sending a html email.. simply switch the comments around to send a text email instead ObjSendMail.HTMLBody = strBody 'ObjSendMail.TextBody = strBody ObjSendMail.Send Set ObjSendMail = Nothing ' change the success messages below to say or do whatever you like ' you could do a response.redirect or offer a hyperlink somewhere.. etc etc %> Your message has been sent.
Thank you for your enquiry.
We will respond as soon as possible

<% Else %>

<% =Replace(ContactUs_Name,vbCr,"
") %>
<% =Replace(ContactUs_Email,vbCr,"
") %> <% =Replace(ContactUs_Telno,vbCr,"
") %> <% =Replace(ContactUs_Address,vbCr,"
") %> <% =Replace(ContactUs_Notes,vbCr,"
") %> <% =Replace(ContactUs_Howfind,vbCr,"
") %>


<% End If %>