subject = scrub_in($_REQUEST['subject']); $mailer->message = scrub_in($_REQUEST['message']); if ($_REQUEST['from'] == 'system') { $mailer->set_default_sender(); } else { $mailer->sender = $GLOBALS['user']->email; $mailer->sender_name = $GLOBALS['user']->fullname; } if($mailer->send_to_group($_REQUEST['to'])) { $title = _('E-mail Sent'); $body = _('Your E-mail was successfully sent.'); } else { $title = _('E-mail Not Sent'); $body = _('Your E-mail was not sent.'); } $url = Config::get('web_path') . '/admin/mail.php'; show_confirmation($title,$body,$url); break; default: require_once Config::get('prefix') . '/templates/show_mail_users.inc.php'; break; } // end switch show_footer(); ?>