This error happen if the Mime-Magic mod is`nt installed on your server. To manage this error you have to install the mod or you must set the Mime-Type of your attachment manually like the following sample:
// The second parameter is the Mime-Type of the attachment.
$mailer->mime_add_attachment("tigger.gif", "image/gif");