|
<%
IF p_confirm = "yes" THEN
Name = "gym4u"
SenderEmail = "noreply@gym4u.net"
Subject = "Enquiry from website"
Recipient1 = "getfit@gym4u.net"
Recipient2 = "chris@v102.net"
Body = "Name: " & p_name & vbCrLf & vbCrLf &
"Email: " & p_email & vbCrLf & vbCrLf &
"Daytime telephone: " & p_day_phone & vbCrLf & vbCrLf &
"Evening telephone: " & p_eve_phone & vbCrLf & vbCrLf &
"Mobile telephone: " & p_mobile & vbCrLf & vbCrLf &
"Enquiry:" & vbCrLf & p_enquiry
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.Logging = True
JMail.Lazysend = true
JMail.Sender = Senderemail
JMail.Subject = Subject
JMail.AddRecipient Recipient1
JMail.AddRecipient Recipient2
JMail.Body = Body
JMail.Priority = 1
JMail.AddHeader "Originating-IP", Request.ServerVariables("REMOTE_ADDR")
JMail.Execute
%>
Thank you for contacting us, we will respond as quickly as possible. Please continue to browse our site using the above menu. <% ELSE %>To contact us via the internet please use the form below: <% END IF %> |
||||||||||