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();
}