summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authortill <till@php.net>2008-02-14 01:33:02 +0000
committertill <till@php.net>2008-02-14 01:33:02 +0000
commit734584e2fe9da38246fe6c59671ef1f0c0e41859 (patch)
tree01b88e2b043a2893fc2f4fc0a86eeb241ec2a44b /program/steps
parent50c7535072aeaa843b8ece23374057f110e43ee7 (diff)
* mime_content_type() is unavailable in PHP5 and breaks sending emails with attachments
* implemented rc_mime_content_type() with file_info-failover * added svn:ignore for phpinfo.php ;-)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/sendmail.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc
index 5a15a83ec..ede98e298 100644
--- a/program/steps/mail/sendmail.inc
+++ b/program/steps/mail/sendmail.inc
@@ -270,7 +270,10 @@ if (is_array($_SESSION['compose']['attachments']))
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);
+ $MAIL_MIME->addAttachment($attachment['path'],
+ rc_mime_content_type($attachment['path'], $attachment['mimetype']),
+ $attachment['name'], true, 'base64',
+ 'attachment', $message_charset);
}
}