From 5f8919d5b90b97b7dff8cc588fec8fb8ac2fd435 Mon Sep 17 00:00:00 2001 From: memespring Date: Sun, 8 Apr 2007 09:50:50 +0000 Subject: [PATCH] made alert emails easier to read --- tools/application_mailer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/application_mailer.php b/tools/application_mailer.php index 4af24e7..8f82e27 100644 --- a/tools/application_mailer.php +++ b/tools/application_mailer.php @@ -78,13 +78,15 @@ print_r($application_results); $smarty->assign("applications", $applications); $smarty->assign("base_url", BASE_URL); $smarty->assign("confirm_id", $user_results[$i][8]); + $smarty->assign("alert_area_size", $user_results[$i][7]); + $smarty->assign("alert_postcode", $user_results[$i][2]); //Get the email text $email_text = $smarty->fetch(SMARTY_TEMPLATE_DIRECTORY . 'alert_email_text.tpl'); //Send the email if($email_text !=""){ - send_text_email($user_results[$i][1], EMAIL_FROM_NAME, EMAIL_FROM_ADDRESS, "Planning applications near " . $user_results[$i][2], $email_text); + send_text_email($user_results[$i][1], EMAIL_FROM_NAME, EMAIL_FROM_ADDRESS, "Planning applications near " . strtoupper($user_results[$i][2]), $email_text); $this->store_log("sent applications to " . $user_results[$i][1]); }else{ $this->store_log("BLANK EMAIL TEXT !!! EMAIL NOT SENT");