mass email scripts: check for PHP_MAILER properly

This commit is contained in:
David Anderson 2014-06-06 15:57:52 -07:00
parent f755957919
commit 4616d1d0c3
2 changed files with 2 additions and 2 deletions

View File

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

View File

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