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