Exemplo n.º 1
0
        public ActionResult Contact(email mail)
        {
            ViewBag.Description = "If you want to contact party in the park use this form";
            ViewBag.Keywords    = "Contact, email, get in touch, Party, park, question?, help";
            StringBuilder sb = new StringBuilder();

            sb.Append("<p>A form from the Party in the Park Contact page has been sent - </p>");
            sb.Append("<p>Email: " + mail.Email + "</p>");
            sb.Append("<p>Message: " + mail.Message + "</p>");


            SendEmail.SendMail(sb.ToString(), "A contact request from the PITP Web site ", mail.Email, "*****@*****.**");
            ViewData["Message"] = "We appreciate you getting in touch. We will contact you shortly with a reply - The Party in the Park Team";
            ViewData["Sent"]    = "sent";
            return(View());
        }
Exemplo n.º 2
0
        // [ActionName("tent-city")]
        public ActionResult tentcity(email mail)
        {
            ViewBag.Description = "Party in the Park 2018 Tent City";
            ViewBag.Keywords    = "housing stall, information on social housing, tenant empowerment, stop social cleansing in london";
            StringBuilder sb = new StringBuilder();

            sb.Append("<p>A form from the Party in the Park Housing Area Info page has been sent - </p>");
            sb.Append("<p>Email: " + mail.Email + "</p>");
            sb.Append("<p>Message: " + mail.Message + "</p>");


            SendEmail.SendMail(sb.ToString(), "Tent City Info request from the PITP Web site ", mail.Email, "*****@*****.**");
            ViewData["Message"] = "We appreciate you getting in touch. We will contact you shortly with a reply - The Party in the Park Team";
            ViewData["Sent"]    = "sent";
            return(View());
        }