<%@LANGUAGE="VBSCRIPT"%> <% mailSubject = "I would like a room at Sun Aviv" ' build the body of the email from the data of the previous page Body = "צור קשר" Body = Body & vbCrLf & "שם: "& Request.Form("שם") Body = Body & vbCrLf & "שם פרטי: "& Request.Form("שם פרטי") Body = Body & vbCrLf & "Email: "& Request.Form("Email") Body = Body & vbCrLf & "טל: "& Request.Form("טל") Body = Body & vbCrLf & "חדרים: "& Request.Form("חדרים") Body = Body & vbCrLf & "הערות: "& Request.Form("הערות") Set Mailer =Server.CreateObject("SMTPsvg.Mailer") Mailer.FromName=Request.Form("שם") Mailer.FromAddress=Request.Form("Email") Mailer.RemoteHost="mail.barak.net.il" ' recipients of this mail - can have more than one Mailer.AddRecipient "Sun Aviv","rooms@sun-aviv.co.il" Mailer.AddRecipient "ic-creatons","ilan@ic-creations.com" Mailer.AddRecipient "Ossendryver","ossendry@netvision.net.il" Mailer.AddRecipient "Sun Aviv","ramiromano@hotmail.com" Mailer.Subject = mailSubject Mailer.BodyText=Body if Mailer.SendMail then ' success! 'Set Mailer = Nothing ' next page to go to.... Response.Redirect ("h_thankyou.htm") else ' oops! Response.Write "Error sending email. Error number reported: " & Mailer.Response end if %> Sun Aviv