%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% Dim sConnection , objConn , objRS Set objConn = Server.CreateObject("ADODB.Connection") FullName = Request.form("FullName") email = Request.form("email") TelNo = Request.form("TelNo") Country = Request.form("Country") CruiseName = Request("CruiseName") CruiseDate = Request.form("CruiseDate") Query = Request.form("Query") complete = Request.form("complete") ContactMethod = Request.form("ContactMethod") LeadCategory = Request.form("LeadCategory") budget = Request.form("budget") title1 = Request.form("title1") sub_offers = Request.form("sub_offers") if title1 = "" then title1 = "Web Page Contact" end if if not sub_offers = 1 then sub_offers = 0 end if opcion=0 guardar=false if complete = 1 then prev_url = Request.form("prev_url") else prev_url = Request.ServerVariables("HTTP_REFERER") end if mensaje = "
Full Name is Missing
" end if if email = "" then errs = errs & "email is Missing
" end if tmp=Cemail(email) if tmp <> "Ok" then errs = errs & "mail " & email & " is incorrect, " & tmp & "
" end if if errs = "" and complete = 1 then if len(prev_url) > 10 then asunto = title1 & ", " & FullName '---------------------------------------- Dim sch, cdoConfig, cdoMessage sch = "http://schemas.microsoft.com/cdo/configuration/" Set cdoConfig = CreateObject("CDO.Configuration") With cdoConfig.Fields 'Set CDO Port .Item(sch & "sendusing") = 2 'Set mailserver name either IP address, mail.yoursite.com or localhost .Item(sch & "smtpserver") = "localhost" 'Set SMTP port which is 25 by default .Item(sch & "smtpserverport") = 25 'Set number of seconds before timeout .Item(sch & "smtpconnectiontimeout") = 60 .update End With Set cdoMessage = CreateObject("CDO.Message") With cdoMessage Set .Configuration = cdoConfig .From = email .To = "sailing@victory-cruises.com" .Subject = asunto 'Send the email in HTML format .HTMLBody = "" & mensaje & "" .Send End With If Err <> 0 Then Response.Write "Error encountered: " & Err.Description End If Set cdoMessage = Nothing Set cdoConfig = Nothing opcion=1 else opcion=2 end if guardar=true else if complete <> 1 then errs = "" guardar=false else guardar=true end if opcion=3 end if %>