summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authortill <till@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-13 05:13:19 +0000
committertill <till@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-13 05:13:19 +0000
commit6c6622a2252f34aaf5482935aaf45b8662fcc370 (patch)
tree69429c3c574fda6420f82d722ed4974d93c7d87a /roundcubemail/program/steps
parent6ca3cd1c85e6e37d57c62c84ce33a36848ed9edc (diff)
* fixing mimetype issue from #1484062
git-svn-id: https://svn.roundcube.net/trunk@1061 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/mail/sendmail.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/sendmail.inc b/roundcubemail/program/steps/mail/sendmail.inc
index a686e123b..5a15a83ec 100644
--- a/roundcubemail/program/steps/mail/sendmail.inc
+++ b/roundcubemail/program/steps/mail/sendmail.inc
@@ -266,7 +266,11 @@ if (is_array($_SESSION['compose']['attachments']))
}
else
{
- $MAIL_MIME->addAttachment($attachment['path'], $attachment['mimetype'], $attachment['name'], true, 'base64', 'attachment', $message_charset);
+ /*
+ We need to replace mime_content_type in a later release because the function
+ is deprecated in favour of File_Info
+ */
+ $MAIL_MIME->addAttachment($attachment['path'], mime_content_type($attachment['path']), $attachment['name'], true, 'base64', 'attachment', $message_charset);
}
}