summaryrefslogtreecommitdiff
path: root/program/steps/mail/sendmail.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-07-25 15:13:15 +0000
committerthomascube <thomas@roundcube.net>2008-07-25 15:13:15 +0000
commit6d5dbae53cd4b4b97da0b0c558292a7f1062a524 (patch)
tree244697d83b4d9fa572883a8dfe2ad0a9911a329f /program/steps/mail/sendmail.inc
parent94e38bbc1e497192c0b4e7345b2ceb307473dfff (diff)
Prefer File_Info over mime_content_type + detect mime type when uploading + some code style
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'],