till
2008-02-13 75f0a738891b88650bb4f22de5b5e5346bb0b668
* fixing mimetype issue from #1484062

1 files modified
6 ■■■■ changed files
program/steps/mail/sendmail.inc 6 ●●●● patch | view | raw | blame | history
program/steps/mail/sendmail.inc
@@ -266,7 +266,11 @@
    }
    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);
    }
  }