|
|
Quick Application<% If Action = "SendEmail" Then If Apply_FName = "" Then IsError = "Yes" Response.Write("You did not enter your First Name.") End If If Apply_LName = "" Then IsError = "Yes" Response.Write("You did not enter your Last Name. ") End If If IsValidEmail(Apply_Email) = "False" Then IsError = "Yes" Response.Write("You did not enter a valid email address. ") End If If Apply_AreaCode = "" Then IsError = "Yes" Response.Write("You did not enter area code for your phone#. ") End If If Apply_Phone = "" Then IsError = "Yes" Response.Write("You did not enter your phone number. ") End If If Apply_HomeValue = "" Then IsError = "Yes" Response.Write("You did not enter your home value. ") End If If Apply_Mortgage = "" Then IsError = "Yes" Response.Write("You did not enter your mortage amount. ") End If End If If Action = "SendEmail" And IsError <> "Yes" Then Dim strBody strBody = strBody & "Application Form submitted at " & Now() & vbCrLf & " " strBody = strBody & "From http://" & Request.ServerVariables("HTTP_HOST") & vbCrLf & " " strBody = strBody & "IP " & Request.ServerVariables("REMOTE_ADDR") & vbCrLf & " " strBody = strBody & "First Name" & " : " & " " & Replace(Apply_FName,vbCr," ") & " " strBody = strBody & "Last Name" & " : " & " " & Replace(Apply_LName,vbCr," ") & " " strBody = strBody & "Email" & " : " & " " & Replace(Apply_Email,vbCr," ") & " " strBody = strBody & "Email" & " : " & " " & Replace(Apply_AreaCode,vbCr," ") & " " strBody = strBody & "Email" & " : " & " " & Replace(Apply_Phone,vbCr," ") & " " strBody = strBody & "Email" & " : " & " " & Replace(Apply_HomeValue,vbCr," ") & " " strBody = strBody & "Subject" & " : " & " " & Replace(Apply_Mortgage,vbCr," ") & " " strBody = strBody & "" Dim ObjSendMail Set ObjSendMail = CreateObject("CDO.Message") ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpserver ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = mainEmail ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = passCode ObjSendMail.Configuration.Fields.Update ObjSendMail.To = mainEmail ObjSendMail.Subject = "Application" ObjSendMail.From = Apply_Email ObjSendMail.HTMLBody = strBody 'ObjSendMail.TextBody = strBody ObjSendMail.Send Set ObjSendMail = Nothing %> Your aplication has been sent. Thank You !! <% Else %> <% End If %>
|
Ads by DogPile
Short Term CashHome Improvement |
||||||


