%@ Import Namespace="System.Web.Mail" %>
<%@ Page Language="c#" %>
<%
Response.Expires = 0;
if(Request.Form.HasKeys())
{
string strFrom = String.Empty;
string strBody = String.Empty;
for(int iKey = 0; iKey < Request.Form.Keys.Count; iKey++)
{
strBody += Request.Form.Keys[iKey].ToString() + ": " +
Request.Form[Request.Form.Keys[iKey].ToString()].ToString() +
"
";
//Grab Return Email Address
if(Request.Form.Keys[iKey].ToString() == "email")
{
strFrom = Request.Form[Request.Form.Keys[iKey].ToString()].ToString();
}
}
MailMessage eMail = new MailMessage();
eMail.To = "info@bishopfarm.com";
eMail.Bcc = "bsausser@dendera.com";
eMail.From = strFrom.ToString();
eMail.Subject = "Request For Booking";
eMail.BodyFormat = MailFormat.Html;
eMail.Body = strBody.ToString();
SmtpMail.SmtpServer = "209.126.158.18";
SmtpMail.Send(eMail);
Response.Redirect("index.htm");
}
%>
|
||||
Directions To Bishop Farm Bed & Breakfast
|
||||
![]() |
||||
![]() |
||||