Net_SMTP::setDebug

Net_SMTP::setDebug() – Set the value of the debugging flag.

Synopsis

require_once 'NET/SMTP.php';

voidNet_SMTP::setDebug ( boolean $debug , callback $handler )

Description

Enables or disables debugging. Once debugging is enabled, messages preceded by "DEBUG: " are being echoed out.

See also Debugging introduction

Parameter

boolean $debug

New value for the debugging flag.

callback $handler

Callback function that gets called with Net_SMTP object and message to display.

Throws

throws no exceptions thrown

Note

This function can not be called statically.