function SMTP::setDebugLevel

5.x SMTP.php public SMTP::setDebugLevel($level = 0)

Set debug output level.

Parameters

int $level:

File

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

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 setDebugLevel($level = 0) {
  $this->do_debug = $level;
}