Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
email print_debugger dumps attachment data #1742
Do you think its possible to add some functionality to the email "print_debugger" so attachment data is not dumped?
perhaps: function print_debugger ($dump_attachment = true)
so that way its backwards compatible, but you can set print_debugger(false) to not include the attachment in the debug?
This is useful for people like me who use database email queues, and I can dump any errors into the record, without having to also dump the file itself!
Here is a StackOverflow discussion about the issue - and a possible solution: http://stackoverflow.com/questions/12145345/capture-email-smtp-error-with-print-debugger-without-attachment-dump
Basically we could make "print_debugger(true)" mean that ONLY the error message is dumped, and none of the email data. This might be useful to return to a user or store in a database.
To do this, just return $this->_debug_msg and nothing else from print_debugger()