<%=LANG_DT( "CONTACT_US_HEAD", "Contact Us" )%>
|
<%
sAction = Trim(Request("sAction"))
If ( sAction = "Contact" ) Then
sError = ""
sEmail = Trim(Request("sEmail"))
sDescription = Trim(Request("sDescription"))
sName = Trim(Request("sName"))
sType = Trim(Request("sType"))
If ( sDescription = "" ) Then
sError = LANG_DT( "CONTACT_US_ENTERCOMMENT", "Please Write a Comment or a Question" )
Else
If ( Len(sEmail) = 0 ) Then
sEmail = LANG_DT( "CONTACT_US_ENTEREMAIL", "Please enter your email address." )
End If
If ( InStr(sEmail, "@") < InStrRev(sEmail, ".") ) And ( InStr(sEmail, "@") > 0 ) Then
sFullLetter = LANG_DT( "CONTACT_US_NEWREQUEST1", "New Customer Support Request." ) & VbCrlf
sFullLetter = sFullLetter & VbCrlf
sFullLetter = sFullLetter & LANG_DT( "CONTACT_US_NEWREQUEST2", "Email: " ) & sEmail
sFullLetter = sFullLetter & VbCrlf & VbCrlf
sFullLetter = sFullLetter & LANG_DT( "CONTACT_US_NEWREQUEST3", "Inquiry type: " ) & sType & VbCrlf & VbCrlf
sFullLetter = sFullLetter & LANG_DT( "CONTACT_US_NEWREQUEST4", "Comment or Question: " ) & VbCrlf
sFullLetter = sFullLetter & sDescription
sEmailResponse = sendMail(sOWCompany, sOWEmailSender, sOWEmailAdmin, "Support Inquiry", sFullLetter)
if ( sEmailResponse = TRUE ) then
sSuccess = LANG_DT( "CONTACT_US_SENTSUCCESSFULLY", "Your Message Has Been Sent to Support. You Should anticipate a Reply Within the Next 24 to 48 Hours." )
else
sError = LANG_DT( "CONTACT_US_ERRORSENDING", "Unable to send message to Support! Please contact the administrator as soon as possible." ) & " Error: " & sEmailResponse
end if
Else
sError = LANG_DT( "CONTACT_US_INVALIDEMAIL", "Unrecognizable email address. Please enter another email address before submitting your request." ) & " " & Server.HTMLEncode(sEmail) & " - " & LANG_DT( "CONTACT_US_INVALIDEMAIL2", "is Not a Valid Email Address." )
End If
End If
End If
If ( sError <> "" ) And ( sAction <> "" ) Then
Call owMessage(sError, C_ERROR)
Call WriteForm()
End If
If ( sSuccess <> "" ) Then
Call owMessage(sSuccess, C_SUCCESS)
End If
If ( sAction = "" ) Then
Call WriteForm()
End If
%>
|
|
|