diff options
author | till <till@php.net> | 2008-02-13 05:13:19 +0000 |
---|---|---|
committer | till <till@php.net> | 2008-02-13 05:13:19 +0000 |
commit | 75f0a738891b88650bb4f22de5b5e5346bb0b668 (patch) | |
tree | c8ddd3cfa3aad7d8d212537dd0f6e53a16aa145f /program/steps | |
parent | 66f12a4539f1cc0c02de9aba0bb8f6636f50f556 (diff) |
* fixing mimetype issue from #1484062
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/mail/sendmail.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index a686e123b..5a15a83ec 100644 --- a/program/steps/mail/sendmail.inc +++ b/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); } } |