<%if Request.ServerVariables("REQUEST_METHOD") = "POST" Then
Dim msg
set msg = Server.CreateObject("JMail.Message")
msg.ISOEncodeHeaders = false
msg.ContentTransferEncoding = "7bit"
msg.Logging = true
msg.silent = true
if Request("email") <> "" then
msg.From = Request("email")
else
msg.From = "liv@dominicanfoundation.org"
end if
msg.FromName = Request("Name")
msg.AddRecipient "liv@dominicanfoundation.org"
'msg.AddRecipientBCC "lauren@magnetic.com"
msg.Subject = "Dominican Foundation Contact Form"
body = vbCRLF & "The following request was submitted at " & now() & vbCRLF & vbCRLF
body = body & "Name: " & Request("fName") & vbCRLF
body = body & "Address: " & Request("Address") & vbCRLF
body = body & "Address2: " & Request("Address2") & vbCRLF
body = body & "City: " & Request("City") & vbCRLF
body = body & "State: " & Request("State") & vbCRLF
body = body & "ZIP Code: " & Request("Zip") & vbCRLF
body = body & "Phone: " & Request("Phone") & vbCRLF
body = body & "Best time to call? " & Request("BestTime") & vbCRLF
body = body & "E-mail: " & Request("Email") & vbCRLF & vbCRLF
body = body & "Additional Information: " & Request("Additional") & vbCRLF & vbCRLF
msg.Body = body
if not msg.Send("mail.magnetic.com" ) then
Response.write "
Sorry, there was a problem in submitting the form. Please try again later. "
else
if Request("email") <> "" then
msg.ClearRecipients
msg.From = "liv@dominicanfoundation.org"
msg.FromName = "Dominican Foundation"
msg.AddRecipient Request("email")
msg.Subject = "Information Request"
msg.Body = "Thank you for contacting the Dominican Foundation. A representative will contact you shortly."
msg.Send("mail.magnetic.com" )
end if
%>
Thank you for contacting the Dominican Foundation. A representative will contact you shortly.
|
<%end if
Set msg = Nothing
else%>
To contact the Dominican Foundation please fill out the form below.
Dominican Foundation, Inc.
5840 Red Bug Lake Road, Suite 280
Winter Springs, FL 32708
New York Address
74 Secor Lane
Hopewell Jct., NY 12533
If you have questions, please contact us at info@dominicanfoundation.org or call 407.992.6982.
|
<% end if %>
|