From 8d85d51975a0112a43030622bbdf7f963469f978 Mon Sep 17 00:00:00 2001 From: Synchro Date: Fri, 21 Dec 2012 11:17:31 +0100 Subject: [PATCH] Fix for attachments with duplicate filenames, thanks to @revaxarts, fixes #15 --- class.phpmailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class.phpmailer.php b/class.phpmailer.php index 2d62315f..4f4d6310 100644 --- a/class.phpmailer.php +++ b/class.phpmailer.php @@ -2421,7 +2421,7 @@ class PHPMailer { if ($directory == '.') { $directory = ''; } - $cid = 'cid:' . md5($filename); + $cid = 'cid:' . md5($url); $ext = pathinfo($filename, PATHINFO_EXTENSION); $mimeType = self::_mime_types($ext); if ( strlen($basedir) > 1 && substr($basedir, -1) != '/') { $basedir .= '/'; }