You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present, the main body of attachment specified by the mailer function provided by cacti core is PNG itself, but the third-party library phpmailer only supports the local file path. It recognizes the PNG content as a path and directly reports an error
Screenshots
Desktop (please complete the following information):
rhel8.2 x64
cacti 1.2.10
thold 1.3.4
FF 74
If mail body do not include both of <GRAPH> and <GRAPH:, functions.php--> mailer() will attach image object as attachement with PHPMailer-->addAttachment()
But PHPMailer-->addAttachment() only accept Local file path as attachment source.
If we have updated PHPMailer and that becomes a minimum requirement, packagers such as @paulgevers and @mortenstevens will need to add that to the requirements of their packages.
OK, I'm confused as both the commits listed in this issue are showing up as DEVELOP commits, yet appear it's @ddb4github's change that appears in the 1.2.x branch.
Activity
ddb4github commentedon Mar 27, 2020
If mail body do not include both of
<GRAPH>and<GRAPH:, functions.php-->mailer()will attach image object as attachement with PHPMailer-->addAttachment()But PHPMailer-->addAttachment() only accept
Local file pathas attachment source.Fixing Issue #3380
ddb4github commentedon Mar 29, 2020
How about this diff, then $attachment['attachment'] support both image realpath and image data..
Before this diff:
After this diff:
TheWitness commentedon Mar 29, 2020
It tried and received a number of back trace errors. Also, your theme pull request was reverted due to not working.
ddb4github commentedon Mar 29, 2020
should be
Minor update due to note on issue #3380
TheWitness commentedon Mar 29, 2020
Just when I thought I could go for a walk.
ddb4github commentedon Mar 29, 2020
Need to upgrade PHPMailer.
Before 6.1.0, function addStringAttachment does not return any true/false
netniV commentedon Apr 1, 2020
If we have updated PHPMailer and that becomes a minimum requirement, packagers such as @paulgevers and @mortenstevens will need to add that to the requirements of their packages.
netniV commentedon Apr 5, 2020
OK, I'm confused as both the commits listed in this issue are showing up as DEVELOP commits, yet appear it's @ddb4github's change that appears in the 1.2.x branch.