Bug #2206
closedRRD Report Email HTML has incorrect file paths for attachments
100%
Description
The HTML created by the RRD Report Email package is listing the graphs as:
<img src="cid:WANGW-quality.rrd-8hour.png" />
but then the graph is attached like so in the email:
Content-Type: application/octet-stream; name="/tmp/WANGW-quality.rrd-8hour.png" Content-Transfer-Encoding: base64 Content-ID: <WANGW-quality.rrd-8hour.png> Content-Disposition: inline; filename="/tmp/WANGW-quality.rrd-8hour.png"
This causes email clients rendering email HTML inline to show broken images.
I attempted to reset the RRD database to see if this would fix the problem, it did not. After the RRD database was deleted I tried to delete the graph items from an individual email report. This did not fix the issue. Next I tried deleting the whole RRD Email Report itself and creating it from scratch. This too did not fix the issue.
Not sure if this is a problem with the RRD backend or the RRD Email Report package.
Files
Updated by Jim Pingle over 12 years ago
- Status changed from New to Feedback
What e-mail client are you using? Because it renders them fine for me in both Thunderbird and K9.
Updated by Jim Pingle over 12 years ago
Try to change line 198 of /etc/inc/mail_reports.inc from:
$mail->AddEmbeddedImage("$filename", $shortname, "$filename");
to:
$mail->AddEmbeddedImage("$filename", $shortname, $shortname);
If that works for you I'll test it here as well and commit.
Updated by Jim Pingle over 12 years ago
- % Done changed from 0 to 100
Applied in changeset commit:a2c86c6b8e7c7ebef9fa22eb46264f1dcf511734.
Updated by Jim Pingle about 12 years ago
- Status changed from Feedback to Resolved