%
if Request.Form("FFSubmitted") = "yes" then
Dim BodyString
Dim objCDO
Dim RedirectURL
Dim FormFields
Dim arrFormFields
FormFields = "Name~Phone~Email~Experience~TellUs"
If FormFields <> "" Then
arrFormFields = split(FormFields,"~")
End If
'Set objCDO = Server.CreateObject("CDONTS.NewMail")
' objCDO.From = "coreyhays@coreyhays.net"
' objCDO.To = "coreyhays@coreyhays.net"
' objCDO.Cc = ""
' objCDO.Bcc = ""
' objCDO.Subject = "Website Contact"
BodyString = Replace("Website Contact Request Form Details","~",chr(13) & chr(10) )& chr(13)
If FormFields <> "" Then
For Each item In arrFormFields
BodyString = BodyString & item & ": " & Request.Form(item) & chr(13)
Next
End If
'objCDO.Body = BodyString
'objCDO.BodyFormat = 1
'objCDO.MailFormat = 1
'objCDO.Send
'Set objCDO = Nothing
Set Mail = Server.CreateObject("SMTPsvg.Mailer") 'create an Asp mail component.
Mail.FromName = "Website Employment Application"
Mail.FromAddress= "service@lonestarauto.biz"
Mail.RemoteHost = "mrelay.perfora.net" ' The mail server you have to use with Asp Mail
'Mail.AddRecipient "Lone Star Automotive.", "mark@lonestarautomotive.biz"'"mark@lonestarautomotive.biz"
Mail.AddRecipient "Lone Stare Automotive", "markcecil@lonestarauto.biz"
Mail.AddRecipient "Lone Stare Automotive", "benmoore@lonestarauto.biz"
Mail.AddRecipient "Lone Stare Automotive", "service@lonestarauto.biz"
Mail.AddRecipient "Web Dev", "rawpayton@hotmail.com"
Mail.AddRecipient "Web Dev", "contact@paytongraphics.com"
Mail.Subject = "Website Employment Application"
Mail.BodyText = BodyString
if Mail.SendMail then
Response.Write "Your mail has already been sent..."
else
Response.Write "Mail send failure. Error was " & Mail.Response
end if
RedirectURL = "confcontact.html"
If RedirectURL <> "" then
If Request.QueryString <> "" Then
response.redirect(RedirectURL & "?" & Request.QueryString)
else
response.redirect(RedirectURL)
end If
end if
end if
%>
Lone Star Automotive, Midland Texas - Auto Repair and Service