%
Public sub sendEmail(strMsg, strSubject, strEmailAddress)
Set Mail = Server.CreateObject("Persits.MailSender")
On Error Resume Next
If strEmailAddress <> "" Then
Mail.Host = "HRDSMTP"
Mail.From = "sales@total-aps.com"
Mail.FromName = "www.total-aps.com"
Mail.Subject = cstr(strSubject)
Mail.AddAddress cstr(strEmailAddress)
Mail.Body = cstr(strMsg)
Mail.IsHTML = true
Mail.Send
If Err <> 0 Then
Response.Write "Error encountered: " & Err.Description
Else
Response.Write "Message was successfully sent to " & strEmailEmail
End If
else
Response.Write("
Error: to address missing
")
end if
End sub
Sub addInquiry (FirstName, LastName, Company,CompanySize, Address1, Address2, City, State, Zip, Country, Phone, Email, Tracking, TrackingOther)
End Sub
strAction = Request.QueryString("Action")
strFirstName = Request.Form("FirstName")
strLastName = Request.Form("LastName")
strCompany = Request.Form("Company")
strCompanySize = Request.Form("CompanySize")
strAddress1 = Request.Form("Address1")
strAddress2 = request.Form("Address2")
strCity = request.Form("City")
strState = request.Form("State")
strZip = request.Form("Zip")
strCountry = request.Form("Country")
strPhone = request.Form("Phone")
strEmail = request.Form("Email")
strTracking = request.Form("Tracking")
strTrackingOther = request.Form("TrackingOther")
strEmailMSg = ""
strEmailMsg = strEmailMsg & "
| Firstname | " strEmailMsg = strEmailMsg & "Lastname | " strEmailMsg = strEmailMsg & "Company | " strEmailMsg = strEmailMsg & "Company Size | " strEmailMsg = strEmailMsg & "Address1 | " strEmailMsg = strEmailMsg & "Address2 | " strEmailMsg = strEmailMsg & "City | " strEmailMsg = strEmailMsg & "State | " strEmailMsg = strEmailMsg & "Zip | " strEmailMsg = strEmailMsg & "Country | " strEmailMsg = strEmailMsg & "Phone | " strEmailMsg = strEmailMsg & "How Did you hear about us? | " strEmailMsg = strEmailMsg & "||
| " & strFirstName & " | " strEmailMsg = strEmailMsg & "" & strLastName & " | " strEmailMsg = strEmailMsg & "" & strCompany & " | " strEmailMsg = strEmailMsg & "" & strCompanySize & " | " strEmailMsg = strEmailMsg & "" & strAddress1 & " | " strEmailMsg = strEmailMsg & "" & strAddress2 & " | " strEmailMsg = strEmailMsg & "" & strCity & " | " strEmailMsg = strEmailMsg & "" & strState & " | " strEmailMsg = strEmailMsg & "" & strZip & " | " strEmailMsg = strEmailMsg & "" & strCountry & " | " strEmailMsg = strEmailMsg & "" & strPhone & " | " strEmailMsg = strEmailMsg & "" & strEmail & " | " if strTracking = "Other" then strEmailMsg = strEmailMsg & "" & strTrackingOther & " | " else strEmailMsg = strEmailMsg & "" & strTracking & " | " end if strEmailMsg = strEmailMsg & "
|
||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
|
Thank you for your interest in Total-APS. Please fill out the form below to proceed to the video presentation. <% if not bolRequiredInfo AND strAction = "process" Then %> You did not supply all of the required information. Please enter all the information with an * next to it <% end if %> (fields marked with a "*" are required) |
|||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||