diff --git a/lib/functions.php b/lib/functions.php index 630becbd84..ac5aba0022 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -3651,7 +3651,7 @@ function mailer($from, $to, $cc, $bcc, $replyto, $subject, $body, $body_text = ' } } else { if (!empty($attachment['attachment']) && @file_exists($attachment['attachment'])) { - $result = $mail->addEmbeddedImage($attachment['attachment'], $cid, $attachment['filename'], 'base64', $attachment['encoding'], $attachment['mime_type'], $attachment['inline']); + $result = $mail->addEmbeddedImage($attachment['attachment'], $cid, $attachment['filename'], $attachment['encoding'], $attachment['mime_type'], $attachment['inline']); } else { $result = $mail->addStringEmbeddedImage($attachment['attachment'], $cid, $attachment['filename'], 'base64', $attachment['mime_type'], $attachment['inline']); }