protected function edebug($str)
    {
        if (!$this->SMTPDebug) {
            return;
        }
        switch ($this->Debugoutput) {
            case 'error_log':
                error_log($str);
                break;
            case 'html':
                //Cleans up output a bit for a better looking display that's HTML-safe
                echo htmlentities(preg_replace('/[\r\n]+/', '', $str), ENT_QUOTES, $this->CharSet) . "<br>\n";
                break;
            case 'echo':
            default:
                echo $str."\n";
        }
    }
protected function edebug($str)
    {
        if (!$this->SMTPDebug) {
            return;
        }
        switch ($this->Debugoutput) {
            case 'error_log':
                error_log($str);
                break;
            case 'html':
                //Cleans up output a bit for a better looking display that's HTML-safe
                echo htmlentities(preg_replace('/[\r\n]+/', '', $str), ENT_QUOTES, $this->CharSet) . "<br>\n";
                break;
            case 'echo':
            default:
                echo $str."\n";
        }
    }
protected function edebug ( $ str ) { if ( ! $ this -> SMTPDebug ) { return ; } switch ( $ this -> Debugoutput ) { case 'error_log' : error_log ( $ str ) ; break ; case 'html' : //Cleans up output a bit for a better looking display that's HTML-safe echo htmlentities ( preg_replace ( '/[\r\n]+/' , '' , $ str ) , ENT_QUOTES , $ this -> CharSet ) . "<br>\n" ; break ; case 'echo' : default : echo $ str . "\n" ; } }
Output debugging info via user-defined method.
Only if debug output is enabled.
@see PHPMailer::$Debugoutput
@see PHPMailer::$SMTPDebug
@param string $str
Output debugging info via user - defined method . Only if debug output is enabled .