// sendFavReport - sends a favorite report to a specified email, called from cron.php
static function sendFavReport($report, $email) {
// We are called from cron.php, we have no $bean in session.
// sendFavReport - sends a favorite report to a specified email, called from cron.php
static function sendFavReport($report, $email) {
// We are called from cron.php, we have no $bean in session.
$mailer->setCharSet(CHARSET);
$mailer->setContentType('text/html');
$mailer->setSender(SENDER);
$mailer->setCharSet(CHARSET);
$mailer->setContentType('text/html');
$mailer->setSender(SENDER);
$mailer->setReceiver($email);
$mailer->setMailMode(MAIL_MODE);
if (!$mailer->send($report['name'], $body))
$mailer->setReceiver($email);
$mailer->setMailMode(MAIL_MODE);
if (!$mailer->send($report['name'], $body))