Index: mimemail.module
===================================================================
--- mimemail.module	(revision 733)
+++ mimemail.module	(working copy)
@@ -261,7 +261,7 @@ if (strpos(variable_get('smtp_library', 
       $body = $message['body'];
     }
     $headers = isset($message['headers']) ? $message['headers'] : array();
-    $mailkey = isset($message['mailkey']) ? $message['mailkey'] : '';
+    $mailkey = isset($message['id']) ? $message['id'] : '';
     return mimemail($from, $to, $subject, $body, NULL, $headers, NULL, array(), $mailkey);
   }
 }
