From 249b6ef1a81584a06b939224e6bfde0afbced255 Mon Sep 17 00:00:00 2001
From: Eric Rasmussen <erasmussen2@unl.edu>
Date: Mon, 11 Apr 2011 19:21:52 +0000
Subject: [PATCH] Add url to bottom of email

---
 config-landscape-outdoorevents.sample.php | 2 ++
 www/landscape/outdoorevents/index.php     | 1 +
 2 files changed, 3 insertions(+)

diff --git a/config-landscape-outdoorevents.sample.php b/config-landscape-outdoorevents.sample.php
index f020fb3..7d00542 100644
--- a/config-landscape-outdoorevents.sample.php
+++ b/config-landscape-outdoorevents.sample.php
@@ -18,6 +18,8 @@ function myautoload($class)
     require_once $file;
 }
 
+$url = "http://localhost/workspace/ucomm_webforms/landscape/outdoorevents/";
+
 $sendToEmail   = "jdoe1@unl.edu"; //Contact person who is collecting data
 $sendToEmailBackup   = "sdoe2@unl.edu"; //Backup contact, set to NULL if not wanted
 $sendToEmailDev= "appdev1@unl.edu"; //Application developer as a backup
diff --git a/www/landscape/outdoorevents/index.php b/www/landscape/outdoorevents/index.php
index 57a6de7..7410511 100644
--- a/www/landscape/outdoorevents/index.php
+++ b/www/landscape/outdoorevents/index.php
@@ -39,6 +39,7 @@ if (!empty($_POST)) {
     $body .= "<h3>Other Information</h3>";
     $body .= "<strong>Bad Weather Contingency:</strong> " . $_POST['weather'] . "<br/>";
     $body .= "<strong>Additional Comments:</strong> " . $_POST['comments'] . "<br/>";
+    $body .= "<p>This email was sent from:" . $url . "</p>";
     
     $note = "<p>Note: This request does not confirm/reserve access to the space. We will contact you as to availability.</p>";
     $mailer->html_body    = $note.$body;
-- 
GitLab