aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-02-20 16:40:10 -0500
committerjim-p <jimp@pfsense.org>2012-02-20 16:41:05 -0500
commita2c86c6b8e7c7ebef9fa22eb46264f1dcf511734 (patch)
treeceb0a2adbe5d89443e6db3ebc234d4c279e76078
parent1b7a7875ddbc62da6bd40b4a0a137c0375912e2f (diff)
downloadpfsense-packages-a2c86c6b8e7c7ebef9fa22eb46264f1dcf511734.tar.gz
pfsense-packages-a2c86c6b8e7c7ebef9fa22eb46264f1dcf511734.tar.bz2
pfsense-packages-a2c86c6b8e7c7ebef9fa22eb46264f1dcf511734.zip
Use the short name in the attachment path to embed, it should make some mail clients happier. Fixes #2206
-rw-r--r--config/mailreport/mail_reports.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/mailreport/mail_reports.inc b/config/mailreport/mail_reports.inc
index 0460bbc6..48fbc868 100644
--- a/config/mailreport/mail_reports.inc
+++ b/config/mailreport/mail_reports.inc
@@ -195,7 +195,7 @@ function mail_report_send($headertext, $attachments) {
if(is_array($attachments)) {
foreach($attachments as $filename) {
$shortname = basename($filename);
- $mail->AddEmbeddedImage("$filename", $shortname, "$filename");
+ $mail->AddEmbeddedImage($filename, $shortname, $shortname);
$mail->Body .= "<br/><br/>{$shortname}<br/><img src=\"cid:{$shortname}\" />\n";
}
}