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__);
            }
        }
    }
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__);
            }
        }
    }
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__ ) ; } } }
This is a callback function to retrieve result returned by PHPMailer

@var bool    $result        result of the send action
@var string  $to            email address of the recipient
@var string  $cc            cc email addresses
@var string  $bcc           bcc email addresses
@var string  $subject       the subject
@var string  $body          the email body
@var string  $from          email address of sender
This is a callback function to retrieve result returned by PHPMailer