public static function send($to, $cc, $bcc, $template, $args = array(), $files = array(), $nodelay = false)
    {
        global $PPHP;

        $blocks = grab('render_blocks', 'email/' . $template, $args);

        if (!is_array($to)) {
            $to = array($to);
        };
        if ($cc !== null && !is_array($cc)) {
            $cc = array($cc);
        };
        if ($bcc !== null && !is_array($bcc)) {
            $bcc = array($bcc);
        };

        $email = self::setOutboxEmail(null, 0, $to, $cc, $bcc, $blocks['subject'], $blocks['html'], $files);

        if (pass('can', 'edit', 'email') && !$nodelay) {
            return $email;
        };
        return self::sendOutboxEmail($email, false);
    }