diff --git a/smtp.mail.inc b/smtp.mail.inc
index 53bf317..dba20d1 100644
--- a/smtp.mail.inc
+++ b/smtp.mail.inc
@@ -497,6 +497,25 @@ class SmtpMailSystem implements MailSystemInterface {
       }
     }
 
+    // Process inline images.
+    if (!empty($message['params']['images'])) {
+      foreach ($message['params']['images'] as $image) {
+        if (!empty($image['filepath']) && !empty($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', '');
     $password = variable_get('smtp_password', '');
