mirror of
https://github.com/e107inc/e107.git
synced 2025-07-16 04:26:20 +02:00
Removed global $pref.
This commit is contained in:
@ -60,10 +60,14 @@ class gsitemap_cron // include plugin-folder in the name.
|
|||||||
|
|
||||||
function sendEmail()
|
function sendEmail()
|
||||||
{
|
{
|
||||||
global $pref;
|
|
||||||
|
$adminEmail = e107::getPref('siteadminemail');
|
||||||
|
$adminName = e107::getPref('siteadmin');
|
||||||
|
|
||||||
require_once(e_HANDLER."mail.php");
|
require_once(e_HANDLER."mail.php");
|
||||||
|
|
||||||
$message = "Your Cron Job worked correctly. Sent at ".date("r").".";
|
$message = "Your Cron Job worked correctly. Sent at ".date("r").".";
|
||||||
sendemail($pref['siteadminemail'], "e107 - TEST Email Sent by cron.".date("r"), $message, $pref['siteadmin'],$pref['siteadminemail'], $pref['siteadmin']);
|
sendemail($adminEmail, "e107 - Crong Test Email", $message, $adminName, $adminEmail, $adminName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user