% @ LANGUAGE="VBSCRIPT" %> <% Option Explicit %> <% ' $Archive: /APPLICATIONS/cms_2.5.1/cms/admin/asp/EmailFormular.asp $ ' $Author: Robert Birkenheuer $ ' $Revision: 5 $ ' $Modtime: 11.05.05 13:19 $ %> <% Dim bShowResults, strSubject, strDBConn, SectionId, PubId, strMailHost, strFromAddress, strAdminMail Dim myForm, strRedirectUrl, strValidationMessage Set myForm = New FormElements bShowResults = false strSubject = "Contact" strRedirectUrl = "" SectionId = "Contact" PubId = 363 strDBConn = "Provider=sqloledb;Data Source=(local);Initial Catalog=cms;User Id=cmsdb;Password=#cmsdb2006;" strMailHost = "smtprelaypool.ispgateway.de" strFromAddress = "noreply@quintx.de" strAdminMail = "" myForm.MailHost = strMailHost myForm.MailFrom = strFromAddress myForm.AdminMail = strAdminMail If Request.ServerVariables("REQUEST_METHOD") = "POST" Then 'If the Form-Field melorisContentCheck has no value the content of the form is hopefully no spam because it is an hidden field and only bots will fill it. If Request.Form("melorisContentCheck") = "" Then 'Only execute Form Processing if called from this page (avoid use of Spam Spiders) If InStr(request.ServerVariables("HTTP_REFERER"), request.ServerVariables("PATH_INFO")) > 0 Then Call myForm.PrepareRequestForm() If myForm.validateForm(strDBConn, SectionId, PubId,strValidationMessage) Then myForm.Modus = true Call myForm.saveFormValues(strDBConn, strSubject, SectionId, PubId) Call myForm.processForm(strDBConn, SectionId, PubId, strSubject) If Len(strRedirectUrl) > 0 Then Response.Redirect strRedirectUrl End If End If End If End If Else If not Request.QueryString("UID") = "" Then Call myForm.PrepareRequestData(myForm.getRequestData(Request.QueryString("UID"),strDBConn)) myForm.Modus = true End If End If %>