'PHPMailer DEBUG OUTPUT without Attachment data
I am using PHPMailer (v 6.6.0) and would like to record meaningful debug information. As noted in other threads, there appears to be no means to exclude message content/body and attachments from the Debug output. I've looked at the feasibility of using the $mail->Debugoutput = function($str,$level){} callback to filter the data, but don't see a way to identify the message content or attachment data from the header info that I'm really interested in - SMTP connection info and message header.
Does anyone have a solution or clue as-to how to parse out the message content (ideal) and attachment (MOST important) data from the Debug output?
My suggestion would be to remove the message and attachment content from the LEVEL 1 and 2 logging and provide them only as an option with another LEVEL.
Thanks in-advance.
-jmd
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
