From d3dafa2166d5bae860b2dd4f4d84625df44e7799 Mon Sep 17 00:00:00 2001
From: Tim Steiner <tsteiner2@unl.edu>
Date: Thu, 6 Nov 2008 18:20:58 +0000
Subject: [PATCH] Fix email glitches.

---
 .../default/controllers/ErrorController.php   |  3 ++-
 library/App/RequestNotification.php           | 20 +++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/application/modules/default/controllers/ErrorController.php b/application/modules/default/controllers/ErrorController.php
index e8178eb8..5c111b49 100644
--- a/application/modules/default/controllers/ErrorController.php
+++ b/application/modules/default/controllers/ErrorController.php
@@ -64,7 +64,8 @@ class ErrorController extends App_Controller_Action {
         }
         */
 
-        $mail->setBodyText($body);
+        $mail->setBodyText('See HTML');
+        $mail->setBodyHtml("<pre>\n" . $body . "\n</pre>\n");
         $mail->send();
     }
 }
diff --git a/library/App/RequestNotification.php b/library/App/RequestNotification.php
index 5af6a3b1..33c5843d 100644
--- a/library/App/RequestNotification.php
+++ b/library/App/RequestNotification.php
@@ -91,6 +91,26 @@ class App_RequestNotification
             $mail->addTo($user->getEmail(), $user->getFirstName() . ' ' . $user->getLastName());
             $mail->setFrom('automated@courseapproval.unl.edu', 'Course Approval');
             $mail->setSubject('Curriculum Approval: You have ' . $requestCount . ' pending requests.');
+            $mail->setBodyText(
+<<<EOF
+Please log in to courseapproval.unl.edu to view and respond to your pending 
+course requests.
+
+1. Copy and paste or type courseapproval.unl.edu into to address bar of your 
+   Internet browser and log in to the system using your Blackboard username and
+   password. You may also access the system through the ACE web site: Go to
+   ace.unl.edu, click on Course Submission under Navigation, then click on the
+   link on that page.
+2. After you have logged in, click on "My Requests".
+3. Course requests with a status of "decision" require you attention.
+4. Upon determining your action, click on the drop-down box under "status" and
+   make your selection.
+5. Finally, click on the "Submit Decisions" button to process your decisions.
+
+For more information about these automated e-mails go to ace.unl.edu.
+EOF
+);
+
             $mail->setBodyHtml(
 <<<EOF
 <p>
-- 
GitLab