PHPMailer\PHPMailer

SMTP::setDebugOutput()publicWP 1.0

Set debug output method.

{} It's a method of the class: SMTP{}

No Hooks.

Return

null. Nothing.

Usage

$SMTP = new SMTP();
$SMTP->setDebugOutput( $method );
$method(string|callable)
The name of the mechanism to use for debugging output, or a callable to handle it
Default: 'echo'

Code of SMTP::setDebugOutput() WP 6.0

public function setDebugOutput($method = 'echo')
{
    $this->Debugoutput = $method;
}