Skip to content
Snippets Groups Projects
Commit a69fbd8a authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

Finish the email, add another email address

parent ecd8141c
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
......@@ -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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment