print_debugger([$include = array('headers', 'subject', 'body')])
| Parameters: |
|
|---|---|
| Returns: |
Formatted debug data |
| Return type: |
string |
Returns a string containing any server messages, the email headers, and the email messsage. Useful for debugging.
You can optionally specify which parts of the message should be printed. Valid options are: headers, subject, body.
Example:
// You need to pass FALSE while sending in order for the email data
// to not be cleared - if that happens, print_debugger() would have
// nothing to output.
$this->email->send(FALSE);
// Will only print the email headers, excluding the message subject and body
$this->email->print_debugger(array('headers'));
Note
By default, all of the raw data will be printed.
Please login to continue.