<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
 if Request.Form("Email")<>"" and len(Request.Form("Email"))>6  and request.form("Namee")<>"" and request.form("sendit")="good"  then 
strEmailFrom = "info@drivingschoolprofessional.com"
strEmailTo = "kelticsupport@gmail.com"
strEmailTo2 ="info@drivingschoolprofessional.com"
strEmailSubject = "SHORT MSG:"
strEmailBody = Request.Form("Namee")+vbcrlf+ Request.Form("Email")+vbcrlf+ Request.Form("Tele") 
 
Set objEmailMsg = Server.CreateObject("Persits.MailSender")
 
objEmailMsg.Host = "smtp1r.cp.blacknight.com"
objEmailMsg.Port = 25
objEmailMsg.From = strEmailFrom
objEmailMsg.AddAddress strEmailTo
objEmailMsg.AddAddress strEmailTo2
objEmailMsg.Subject = strEmailSubject
objEmailMsg.Body = strEmailBody
On Error Resume Next
objEmailMsg.Send
 response.redirect "send-info.asp?send=1"
 Set objEmailMsg = Nothing
 
If Err <> 0 Then
   Response.Write "Error encountered: " & Err.Description

Else 
end if

end if 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Send info</title>
<meta name="noindex" />


<link href="computerwindowstyles.css" rel="stylesheet" type="text/css" />
<link href="2col_designv2.css" rel="stylesheet" type="text/css" />
</head>

<body id="signup"> <div align="LEFT" style="position:relative;top:-6px"><form action="send-info.asp" method="post" name="signup" target="_self" style="color:#666666" ><br />

<input name="namee" type="text" class="textbox" id="namee" style="margin-left:6px;"  value="Your Name" maxlength="20" onclick="this.value='';"/>
<br />
<input name="email" type="text" class="textbox" id="email" style="margin-left:6px" value="Email" maxlength="60" onclick="this.value='';" />
					 <br />
					 <textarea name="tele" class="textbox" id="tele" style="margin-left:6px" rows="3" cols="30" onclick="this.value='';">Message</textarea>
					 <br />
<input name="sendit" type="hidden" value="good" />
					 <% if request.QueryString("send")<>1 then %><input type="button" src="/images/submit1.jpg" style="margin-left:6px; margin-top:10px; background-color:#d1d1d1; border:1px solid" onclick="this.form.submit();" value="Send Us A Message" /> <% else %>Message Sent! <% end if %> </form></div>
</body>
</html>