diff --git a/config-landscape-outdoorevents.sample.php b/config-landscape-outdoorevents.sample.php index cb345c16545af465b781d2fc20054ebf0bfc0c58..a2c34dea4e0e7135c66f240d11067c00a302b6e8 100644 --- a/config-landscape-outdoorevents.sample.php +++ b/config-landscape-outdoorevents.sample.php @@ -18,7 +18,8 @@ function myautoload($class) require_once $file; } -$sendToEmail = ""; //Will send form data to this email address. +$sendToEmail = "jdoe1@unl.edu"; +$sendToEmailDev= "appdev1@unl.edu"; $sendFromEmail = "no-reply@ucommxsrv1.unl.edu"; //Will send email from this address. $emailSubject = "UNL Outdoor Event Space Request"; //Subject for the email. diff --git a/www/landscape/outdoorevents/index.php b/www/landscape/outdoorevents/index.php index 03239c6d08c6ab4e571fa310e2034125aa990550..bf1868d03e9b7ef8ecf2a1238539a22631bd1e76 100644 --- a/www/landscape/outdoorevents/index.php +++ b/www/landscape/outdoorevents/index.php @@ -7,20 +7,46 @@ if (file_exists(dirname(__FILE__).'/../../../config-landscape-outdoorevents.inc. if (!empty($_POST)) { $mailer = new UNL_WDN_Emailer_Main(); + $body .= "<h5>Event Information</h5>"; + $body .= "<strong>Location:</strong> " . $_POST['location'] . "<br/>"; + $body .= "<strong>Begin Date:</strong> " . $_POST['begindate_month']."/".$_POST['begindate_day']."/".$_POST['begindate_year']. " "; + $body .= "<strong>End Date:</strong> " . $_POST['enddate_month']."/".$_POST['enddate_day']."/".$_POST['enddate_year']. "<br/>"; + $body .= "<strong>Title of Event:</strong> " . $_POST['title'] . "<br/>"; + $body .= "<strong>Description:</strong> " . $_POST['description'] . "<br/>"; + $body .= "<strong>Start Time:</strong> " . $_POST['starttime_hour'].":".$_POST['starttime_minute']." ".$_POST['starttime_ampm']. " "; + $body .= "<strong>End Time:</strong> " . $_POST['endtime_hour'].":".$_POST['endtime_minute']." ".$_POST['endtime_ampm']. "<br/>"; + $body .= "<strong>Expected Attendance:</strong> " . $_POST['attendance'] . "<br/>"; + $body .= "<strong>Sponsor:</strong> " . $_POST['sponsor'] . "<br/>"; + + $body .= "<h5>Contact Information</h5>"; $body .= "<strong>Name:</strong> " . $_POST['name'] . "<br/>"; - $body .= "<strong>Phone Number:</strong> " . $_POST['phone'] . "<br/>"; - $body .= "<strong>Email Address:</strong> " . $_POST['email'] . "<br/>"; - $body .= "<strong>URL to video:</strong> " . $_POST['video'] . "<br/>"; - $body .= "<strong>Type:</strong> " . $_POST['type'] . "<br/>"; - $body .= "<strong>Proposal:</strong><br/>" . $_POST['proposal'] . "<br/>"; + $body .= "<strong>Email:</strong> " . $_POST['email'] . "<br/>"; + $body .= "<strong>Address:</strong> " . $_POST['streetaddress'] . "<br/>"; + $body .= "<strong> </strong> " . $_POST['city']." ".$_POST['state']." ".$_POST['zip']. "<br />"; + $body .= "<strong>Business Phone:</strong> " . $_POST['business'] . "<br/>"; + $body .= "<strong>Home Phone:</strong> " . $_POST['home'] . "<br/>"; + $body .= "<strong>Fax:</strong> " . $_POST['fax'] . "<br/>"; + + $body .= "<h5>Event Requirements</h5>"; + $body .= "<strong>Litter Containers:</strong> " . $_POST['litter_number'] . "<br/>"; + $body .= "<strong>Picnic Tables:</strong> " . $_POST['picnic_number'] . "<br/>"; + $body .= "<strong>Electricity Hookup:</strong> " . $_POST['electricity'] . "<br/>"; + + $body .= "<h5>Other Information</h5>"; + $body .= "<strong>Bad Weather Contingency:</strong> " . $_POST['weather'] . "<br/>"; + $body .= "<strong>Additional Comments:</strong> " . $_POST['comments'] . "<br/>"; + $mailer->html_body = $body; - $mailer->to_address = $sendToEmail; + $mailer->to_address = $_POST['email']; $mailer->from_address = $sendFromEmail; $mailer->subject = $emailSubject; $mailer->send(); - // Send another copy to the UNL WDN address, as a backup. - $mailer->to_address = 'ericrasmussen1@gmail.com'; + // Send to head of Landscape Services + $mailer->to_address = $sendToEmail; + $mailer->send(); + // Send another copy to the developer as a backup + $mailer->to_address = $sendToEmailDev; $mailer->send(); header('Location: thankyou.php'); exit();