diff --git a/smtp.mail.inc b/smtp.mail.inc
index a6e90ef..a4e50b5 100644
--- a/smtp.mail.inc
+++ b/smtp.mail.inc
@@ -483,6 +483,23 @@ class SmtpMailSystem implements MailSystemInterface {
         }
       }
     }
+    if(isset($message['params']['images'])) {
+      foreach($message['params']['images'] as $image) {
+        if(isset($image['filepath']) && isset($image['cid'])) {
+          if (file_exists($image['filepath'])) {
+            $image_extension = pathinfo($image['filepath'], PATHINFO_EXTENSION);
+            $image_mime_type = PHPMailer::_mime_types($image_extension);
+            if(empty($image['name'])) {
+              $image_name = pathinfo($image['filepath'], PATHINFO_FILENAME);
+            }
+            else {
+              $image_name = $image['name'];
+            }
+            $mailer->AddEmbeddedImage($image['filepath'], $image['cid'], $image_name, 'base64', $image_mime_type);
+          }
+        }
+      }
+    }
 
     // Set the authentication settings.
     $username = variable_get('smtp_username', '');
