<% Option Explicit Response.Buffer = TRUE %> <% ' stop flow if e-mail errors (yes or no) - set to no if you want process to continue if e-mail problem Const stopFlow = "yes" Dim NewMailObj, fromWho, toWho, replyTo, Subject, Body SUB sendMail( fromWho, toWho, replyTo, Subject, Body ) Set NewMailObj = Server.CreateObject("Persits.MailSender") NewMailObj.Host = "IPgoeshere" NewMailObj.From = fromWho NewMailObj.AddAddress toWho NewMailObj.AddReplyTo replyTo NewMailObj.Subject = Subject NewMailObj.Body = Body NewMailObj.IsHTML = false ' Make sure any errors don't stop the program flow if required If stopFlow = "no" Then On Error Resume Next End If NewMailObj.Send ' Clear the mail object Set NewMailObj = Nothing ' Check for any errors If stopFlow = "no" Then If (err.Number <> 0) Then strResult = "There was a problem processing your details. Please try again later." err.Clear End If End If END SUB Dim custname, custcompany, custaddress, custphone, custmobile, custfax, custemail, custrefer Dim custaccomm, custsubscribe, custcomments Dim accsuite, accdouble, acctwin, accfamily, accsingle Dim partytotal, partyadults, partychildren, agechildren Dim firstDate, lastDate Dim sMailBody, blnSubmit, blnSpam, strHack, strResult, processData ' Check for form submissions processData = TRIM( Request.Form( "processData" ) ) If processData = "yes" Then blnSubmit = True ' request form data custname = TRIM( Request.form( "custname" )) 'custcompany = TRIM( Request.form( "custcompany" )) custaddress = TRIM( Request.form( "custaddress" )) custphone = TRIM( Request.form( "custphone" )) custmobile = TRIM( Request.form( "custmobile" )) 'custfax = TRIM( Request.form( "custfax" )) custemail = TRIM( Request.form( "custemail" )) custrefer = TRIM( Request.form( "custrefer" )) 'partytotal = TRIM( Request.form( "partytotal" )) 'partyadults = TRIM( Request.form( "partyadults" )) 'partychildren = TRIM( Request.form( "partychildren" )) 'agechildren = TRIM( Request.form( "agechildren" )) 'accsuite = TRIM( Request.form( "accsuite" )) 'accsingle = TRIM( Request.form( "accsingle" )) 'accdouble = TRIM( Request.form( "accdouble" )) 'acctwin = TRIM( Request.form( "acctwin" )) 'custaccomm = TRIM( Request.form( "custaccomm" )) custsubscribe = TRIM( Request.form( "custsubscribe" )) custcomments = TRIM( Request.form( "custcomments" )) 'firstDate = TRIM( Request.form( "firstDate" )) 'lastDate = TRIM( Request.form( "lastDate" )) ' stop spiders and hacking blnSpam = False ' Stop spiders etc submitting forms If custname="" Then blnSpam = True End If sMailBody = "******** The Physio - Website Contact Form ********" & vbNewLine & vbNewLine sMailBody = sMailBody & "== Personal information == " & vbNewLine sMailBody = sMailBody & "From : " & custname & vbNewLine 'sMailBody = sMailBody & "Company : " & custcompany & vbNewLine & vbNewLine sMailBody = sMailBody & "Address : " & vbNewLine & custaddress & vbNewLine & vbNewLine sMailBody = sMailBody & "Phone : " & custphone & vbNewLine sMailBody = sMailBody & "Mobile : " & custmobile & vbNewLine 'sMailBody = sMailBody & "Fax : " & custfax & vbNewLine sMailBody = sMailBody & "E-mail : " & custemail & vbNewLine & vbNewLine 'sMailBody = sMailBody & "== Accommodation information == " & vbNewLine 'sMailBody = sMailBody & "First Night : " & firstDate & vbNewLine 'sMailBody = sMailBody & "Last Night : " & lastDate & vbNewLine 'sMailBody = sMailBody & "Single rooms : " & accsingle & vbNewLine 'sMailBody = sMailBody & "Twin rooms : " & acctwin & vbNewLine 'sMailBody = sMailBody & "Double rooms : " & accdouble & vbNewLine 'sMailBody = sMailBody & "Suites : " & accsuite & vbNewLine 'sMailBody = sMailBody & "Accommodation type : " & custaccomm & vbNewLine & vbNewLine sMailBody = sMailBody & "== Other information == " & vbNewLine sMailBody = sMailBody & "How did you hear of us? : " & custrefer & vbNewLine sMailBody = sMailBody & "Happy to receive e-mail news/offers? : " & custsubscribe & vbNewLine & vbNewLine sMailBody = sMailBody & "Additional comments : " & vbNewLine & custcomments & vbNewLine ' check for people hacking form strHack = "bcc:" If Instr(sMailBody,strHack) > 0 Then blnSpam = True End If strHack = "Content-Type:" If Instr(sMailBody,strHack) > 0 Then blnSpam = True End If ' check for same in all fields (pick 2) If custname = custphone Then blnSpam = True End If fromWho = "enqform@thephysionorthwales.co.uk" Subject = "The Physio website enquiry from " & custname & " sent at " & now() toWho = "info@thephysionorthwales.co.uk" replyTo = custemail Body = sMailBody 'send mail If Not blnSpam Then sendMail fromWho, toWho, replyTo, Subject, Body strResult = "Thank you for filling in our enquiry form. We will contact you shortly." Else strResult = "There was a problem processing your details. Please try again later." End If ' If form not submitted Else blnSubmit = False End If %> Contact The Physio Physiotherapy and Sports Injury Clinic in Llanrwst, Conwy Valley, North Wales
the physio and sports injury clinic in llanrwst north wales

Contacting The Physio & Sports Injury Clinic, Llanrwst

Contact Information

Address

Steve Willis,
The Physio & Sports Injury Clinic,
Llys Jones,
Nebo Road,
Llanrwst,
Conwy,
North Wales.
LL26 0SD.
UK

Phone

01492 642142

Fax

01492 642144

E-mail

click here to e-mail info at thephysionorthwales.co.uk

 
<% If blnSubmit Then %>

Form Submission

<%=strResult%>

<% Else %>

Enquiry Form

If you wish you can fill in the following enquiry form, and we will contact you as soon as possible.

(* denotes that this has to be filled in)

Your name * :
Address :
Phone number * :
Mobile :
E-mail :
How did you hear of us? :
Receive e-mail news? * :   Yes
  No
Select 'Yes' if you would like to receive any e-mails that we send about news and offers from The Physio. We will not pass your details to anybody else.

Please enter your enquiry below:



Please check that the details you have entered
are correct before submitting the form.

<% End If %>

Contact Details

Steve Willis, The Physio & Sports Injury Clinic,
Llys Jones, Nebo Road, Llanrwst, Conwy, North Wales. LL26 0SD. UK

Tel: 01492 642142    Fax: 01492 642144
e-mail: click here to e-mail info at thephysionorthwales.co.uk or use online form