%@LANGUAGE="VBSCRIPT"%>
<%
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "127.0.0.1" ' SMTP Server Name
Mail.FromName = request.form("lastname") ' Sender's Name
Mail.From = request.form("email") ' Sender's Email
Mail.AddAddress "enquiries@???.com" ' YOUR Email address
Mail.Subject = "Message submitted via the ??? website"
Mail.Body = "Name : " & request.form("name") & _
vbNewLine _
& "E-Mail Address : " & request.form("email") & _
vbNewLine _
& "Phone Number : " & request.form("phone") & _
vbNewLine _
& "Message : " & request.form("message")
Mail.ContentTransferEncoding = "Quoted-Printable"
On Error Resume Next
Mail.Send
%>
<%
Dim rs_details__MMColParam
rs_details__MMColParam = "1"
if (Request.QueryString("ID") <> "") then rs_details__MMColParam = Request.QueryString("ID")
%>
<%
set rs_details = Server.CreateObject("ADODB.Recordset")
rs_details.ActiveConnection = MM_connCapRes_STRING
rs_details.Source = "SELECT * FROM Property_Details WHERE ID = " + Replace(rs_details__MMColParam, "'", "''") + ""
rs_details.CursorType = 0
rs_details.CursorLocation = 2
rs_details.LockType = 3
rs_details.Open()
rs_details_numRows = 0
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "="
MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone=""
' add the URL parameters to the MM_keepURL string
For Each Item In Request.QueryString
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item))
End If
Next
' add the Form variables to the MM_keepForm string
For Each Item In Request.Form
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item))
End If
Next
' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
if (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
if (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
if (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
Capital Residence | Commission Free Property Sales | Sell my home with Capital Residence
Back to property
details <%=(rs_details.Fields.Item("Property_Town_or_Area").Value)%>,
<%=(rs_details.Fields.Item("Property_County").Value)%>, <%=(rs_details.Fields.Item("Property_Postcode_or_Zip").Value)%>