Index: mimemail.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mimemail/mimemail.inc,v
retrieving revision 1.40
diff -u -r1.40 mimemail.inc
--- mimemail.inc	23 Feb 2009 16:11:19 -0000	1.40
+++ mimemail.inc	27 Feb 2010 17:04:57 -0000
@@ -137,7 +137,8 @@
       'Content-ID' => $content_id,
       'Content-Disposition' => $disposition,
     );
-    $new_file['Content-Type'] = file_get_mimetype($file);
+    
+    $new_file['Content-Type'] = (!empty($name)) ? file_get_mimetype($name) : file_get_mimetype($file);
 
     $files[] = $new_file;
     $filenames[$file] = $content_id;
