% @LANGUAGE="VBSCRIPT" %>
<% Option Explicit %>
<%
' -------------------------------------------------------------------------
' Description : Contact Page
' Author : L. Smeets
' Company : Bogey Webdesign
' -------------------------------------------------------------------------
%>
<%
Dim naam, contact, email
Dim title, keywords, description, copyright, publisher
Dim FromName, FromAdres, FromPostcode, FromStad, FromLand, FromTelefoon, FromFax, FromEmail
Dim FromOpmerkingen, FromCheck
Dim Mailer, strBody
%>
<%
cmdTemp.CommandText = "SELECT * FROM meta"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = DB
RS.Open cmdTemp, , 0, 1
If Not (RS.EOF or RS.BOF) Then
title = RS("Title")
keywords = RS("Keywords")
description = RS("Description")
copyright = RS("Copyright")
publisher = RS("Publisher")
End If
RS.Close
%>
<%
cmdTemp.CommandText = "SELECT * FROM bedrijf"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = DB
RS.Open cmdTemp, , 0, 1
If Not (RS.EOF or RS.BOF) Then
naam = RS("Naam")
contact = RS("Contact")
email = RS("Email")
End If
RS.Close
%>
<%
FromName = Request.Form("txtFromName")
FromAdres = Request.Form("txtFromAdres")
FromPostcode = Request.Form("txtFromPostcode")
FromStad = Request.Form("txtFromStad")
FromLand = Request.Form("txtFromLand")
FromTelefoon = Request.Form("txtFromTelefoon")
FromFax = Request.Form("txtFromFax")
FromEmail = Request.Form("txtFromEmail")
FromOpmerkingen = Request.Form("txtOpmerkingen")
FromCheck = Request.Form("txtCheck")
If FromCheck = "on" Then
FromCheck = "Ja"
Else
FromCheck = "Nee"
End If
set Mailer = Server.CreateObject("CDONTS.NewMail")
Mailer.From = FromEmail
Mailer.To = email
Mailer.Subject = "Reactie op " & naam & " Website"
strBody = "
Reactie op Website " & Day(Date) & "-" & Month(Date)& "-" & Year(Date) & " " & FormatDateTime(Time,4) & " "
strBody = strBody & "***************************************** "
strBody = strBody & "Naam : " & FromName & " "
strBody = strBody & "Adres : " & FromAdres & " "
strBody = strBody & "Postcode : " & FromPostcode & " "
strBody = strBody & "Plaats : " & FromStad & " "
strBody = strBody & "Tel. : " & FromTelefoon & " "
strBody = strBody & "Fax : " & FromFax & " "
strBody = strBody & "E-mail : " & FromEmail & " "
strBody = strBody & " "
strBody = strBody & "Contact : " & FromCheck & " "
strBody = strBody & " "
strBody = strBody & "Opmerkingen : "
strBody = strBody & "" & FromOpmerkingen & " "
strBody = strBody & "*****************************************
"
Mailer.Body = strBody
Mailer.BodyFormat = 0
Mailer.MailFormat = 0
If FromName <> "" OR FromAdres <> "" OR FromPostcode <> "" OR FromStad <> "" OR FromTelefoon <> "" OR FromOpmerkingen <> "" Then
Mailer.Send
End If
Set Mailer = nothing
%>
<%=title%>
<%
If Request.ServerVariables("HTTP_METHOD")="POST" and Request("mode")="thanks" Then
%>
<%=GetText(13)%>,
<%=GetText(14)%> <%=GetText(15)%>
<%=GetText(16)%>, <%=contact%>
<%=GetText(17)%>
<%
Else
%>
<%
End If
%>