, "; } // Remove the last , from the recipient $recipient = rtrim($recipient,","); // Set the vars on the object AmpacheMail::$recipient = $recipient; AmpacheMail::$from = $GLBOALS['user']->fullname."<".$GLOBALS['user']->email.">"; AmpacheMail::$subject = scrub_in($_REQUEST['subject']); AmpacheMail::$message = scrub_in($_REQUEST['message']); AmpacheMail::send(); /* Confirmation Send */ $url = Config::get('web_path') . '/admin/mail.php'; $title = _('E-mail Sent'); $body = _('Your E-mail was successfully sent.'); show_confirmation($title,$body,$url); break; default: require_once Config::get('prefix') . '/templates/show_mail_users.inc.php'; break; } // end switch show_footer(); ?>