From 4616d1d0c3191dcd429ae697dab00b4886c40c60 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 6 Jun 2014 15:57:52 -0700 Subject: [PATCH] mass email scripts: check for PHP_MAILER properly --- html/ops/mass_email_script.php | 2 +- html/ops/remind.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/ops/mass_email_script.php b/html/ops/mass_email_script.php index 4872c697f8..9a3e38bfd8 100755 --- a/html/ops/mass_email_script.php +++ b/html/ops/mass_email_script.php @@ -303,7 +303,7 @@ function main() { echo 'All done!' . "\n"; } -if (!$USE_PHPMAILER) { +if (!function_exists('make_php_mailer')) { echo "You must use PHPMailer.\n"; exit(); } diff --git a/html/ops/remind.php b/html/ops/remind.php index 2313ede4fb..a6b88d63d3 100755 --- a/html/ops/remind.php +++ b/html/ops/remind.php @@ -312,7 +312,7 @@ function do_lapsed() { mysql_free_result($result); } -if (!$USE_PHPMAILER) { +if (!function_exists('make_php_mailer')) { echo "You must use PHPMailer (http://phpmailer.sourceforge.net)\n"; exit(); }