public static function processResult($result, $to = '', $cc = '', $bcc = '', $subject = '', $body = '', $from = '')
    {
        self::$success = $result;

        if (YII_DEBUG) {

            $msg = ' - Sending email. ';
            //native PHPMailer's way to pass results to [[doCallback()]] function is a little bit strange
            $msg .= (!empty($to)) ? ('To: ' . (is_array($to) ? implode(';', $to) : $to) . '.') : '';
            $msg .= (!empty($cc)) ? ('Cc: ' . (is_array($cc) ? implode(';', $cc) : $cc) . '.') : '';
            $msg .= (!empty($bcc)) ? ('Bcc: ' . (is_array($bcc) ? implode(';', $bcc) : $bcc) . '.') : '';

            $msg .= ' Subject: "' . $subject . '"';
            if ($result) {
                Yii::info('OK' . $msg, __METHOD__);
            } else {
                Yii::warning('FAILED' . $msg, __METHOD__);
            }
        }
    }