From a2c86c6b8e7c7ebef9fa22eb46264f1dcf511734 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 20 Feb 2012 16:40:10 -0500 Subject: Use the short name in the attachment path to embed, it should make some mail clients happier. Fixes #2206 --- config/mailreport/mail_reports.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') 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 .= "

{$shortname}
\n"; } } -- cgit v1.2.3