%@ Language=VBScript %>
<%
Function IsChecked(strFieldName)
Dim blnChecked
If Request.QueryString(strFieldName).Count > 0 Then
blnChecked = True
Else
blnChecked = False
End If
IsChecked = blnChecked
End Function
if request("Contact_Name") <> "" then
Set pdmail=server.createobject("Persits.MailSender")
pdmail.Host="mail.superiorpoolsnc.com"
pdmail.From="contact@superiorpoolsnc.com"
pdmail.Username = "contact@superiorpoolsnc.com"
pdmail.Password = "password"
pdmail.AddAddress "info@superiorpoolsnc.com"
pdmail.FromName=Request("Contact_Name")
pdmail.Subject="Superior Pool Estimate Request"
pdmail.Body= "*********************************" & _
"
CONTACT INFORMATION" & _
"
Contact Name " & request("Contact_Name") _
& "
Email Address : " & request("Contact_Email") _
& "
Address : " & request("Contact_Address") _
& "
City : " & request("Contact_City") & request("Contact_State") & ". " & request("Contact_Zip") _
& "
Phone : " & request("Contact_Phone") _
& "
AltPhone : " & request("Contact_Phone2") _
& "
Time : " & request("Contact_Time") _
& "
*********************************
" _
& "POOL INFORMATION"
If IsChecked("appointmenttype") Then
pdmail.Body=pdmail.Body & "
I'm interested in a " & appointmenttype & " pool."
Else
End If
If IsChecked("appointmenttype2") Then
pdmail.Body=pdmail.Body & "
I'm interested in a " & appointmenttype2 & " pool."
Else
End If
If IsChecked("appointmenttype3") Then
pdmail.Body=pdmail.Body & "
I'm interested in a " & appointmenttype3 & " pool."
Else
End If
If IsChecked("appointmenttype") Then
pdmail.Body=pdmail.Body & "
I'm interested in a " & appointmenttype4 & " pool."
Else
End If
If IsChecked("appointmenttype2") Then
pdmail.Body=pdmail.Body & "
I'm interested in a " & appointmenttype5 & " pool."
Else
End If
If IsChecked("appointmenttype3") Then
pdmail.Body=pdmail.Body & "
I'm interested in a " & appointmenttype6 & " pool."
Else
End If
pdmail.Body=pdmail.Body & "
*********************************" & "
Comments : " & request("Contact_Comments")
' On Error Resume Next
pdmail.Send
If Err <> 0 Then
Response.Write "An error occurred: " & Err.Description
End If
set pdmail=nothing
end if
%>