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 .= '/'; }