summaryrefslogtreecommitdiff
path: root/program/steps/mail/sendmail.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/steps/mail/sendmail.inc')
-rw-r--r--program/steps/mail/sendmail.inc7
1 files changed, 1 insertions, 6 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc
index babde48b9..75000d4aa 100644
--- a/program/steps/mail/sendmail.inc
+++ b/program/steps/mail/sendmail.inc
@@ -284,12 +284,7 @@ if (is_array($_SESSION['compose']['attachments']))
}
else
{
- /*
- We need to replace mime_content_type in a later release because the function
- is deprecated in favour of File_Info
- */
- $ctype = rc_mime_content_type($attachment['path'], $attachment['mimetype']);
- $ctype = str_replace('image/pjpeg', 'image/jpeg', $ctype); // #1484914
+ $ctype = str_replace('image/pjpeg', 'image/jpeg', $attachment['mimetype']); // #1484914
// .eml attachments send inline
$MAIL_MIME->addAttachment($attachment['path'],