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


require_once 'NET/SMTP.php';

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


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

See also Debugging introduction


boolean $debug

New value for the debugging flag.

callback $handler

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


throws no exceptions thrown


This function can not be called statically.

Send the SEND FROM: command. (Previous) Send the SOML FROM: command. (Next)
Last updated: Tue, 17 Jan 2017 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.