CI_Email::print_debugger()

print_debugger([$include = array('headers', 'subject', 'body')])

Parameters:
  • $include (array) – Which parts of the message to print out
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.

doc_CodeIgniter
2016-10-15 16:31:29
Comments
Leave a Comment

Please login to continue.