property SMTP::$Debugoutput
Search API
How to handle debug output. Options:
- `echo` Output plain-text as-is, appropriate for CLI
- `html` Output escaped, line breaks converted to `<br>`, appropriate for browser output
- `error_log` Output to error log as configured in php.ini
Alternatively, you can provide a callable expecting two params: a message string and the debug level:
```php $smtp->Debugoutput = function($str, $level) {echo "debug level $level; message: $str";}; ```
Alternatively, you can pass in an instance of a PSR-3 compatible logger, though only `debug` level output is used:
```php $mail->Debugoutput = new myPsr3Logger; ```
Type: string|callable|\Psr\Log\LoggerInterface
File
- inc/
PHPMailer/ src/ SMTP.php, line 119
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 $Debugoutput = 'echo';