Drupal Mimemail missing embedded images [Solved]

Hold on Cowboy

This blog post is pretty old. Be careful with the information you find in here. It's likely dead, dying, or wildly inaccurate.

A really weird bug in Drupal’s Mime Mail module. This module allows you to send HTML emails with links to images and such.


Create a newsletter, send a test one, works great. Send it for real and the embedded images are missing.

I initially thought it was poormanscron, but I don’t have that installed on this Drupal site. Basically what was happening is the first email would be the embedded image (hence it worked when you tested it) but all subsequent recipients would not get the image.

The fix is a simple change to mimemail.inc here is the diff file ` — mimemail.inc 2009-04-01 18:09:50.000000000 +0200 +++ mimemail.inc 2009-04-01 18:10:06.000000000 +0200 @@ -148,6 +148,7 @@ function _mimemail_file($url = NULL, $na

 $ret = $files;
 $files = array();
  • $filenames = array(); return $ret; } `

Credit: http://drupal.org/node/358439#comment-1426276

Did this help you out? It took me a few days to piece together all this information together, I hope this saves you some time (who knows, maybe the future me will be thankful I wrote this down). Let me know your thoughts. shanestillwell@gmail.com