function SMTP::setDebugOutput

5.x SMTP.php public SMTP::setDebugOutput($method = 'echo')

Set debug output method.

Parameters

string|callable $method The name of the mechanism to use for debugging output, or a callable to handle it:

File

inc/PHPMailer/src/SMTP.php, line 1229

Class

SMTP
PHPMailer RFC821 SMTP email transport class. Implements RFC 821 SMTP commands and provides some utility methods for sending mail to an SMTP server.

Code

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