simplenews and mimemail combination, pictures only got send to first registered email adres

Tmanagement - May 4, 2009 - 17:08
Project:Simplenews
Version:6.x-1.0-rc6
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

I have installed the simplenews module 6.x-1.0-rc6 in combination with drupal 6.11 and the mimemail module 6.x-1.x-dev. By sending all kind of test newsletters in HTML format with pictures included I found out that the included picture is only being send to the first given test email address or the first email address that is registered for the newsletter.

The images are also not attached to the emails. So only the first email wil contain the images in the newsletter and the rest of the emailaddresses are not receiving any of them.

Could also be an mimemail issue, not sure.

#1

Tmanagement - May 7, 2009 - 18:40

Somebody?

#2

Sutharsan - May 8, 2009 - 08:07

To find out whether this is a simplenews or mime mail issue, you must debug the data which simplenews sends to mime mail. simplenews.module calls mimemail() function.

#3

mr.morton - June 4, 2009 - 14:18

DOUBLE POST... sorry

#4

mr.morton - June 4, 2009 - 14:16

This happens to me to, I avoid the problem by supplying full path for all images, but this is obvious not a good solution...

#5

flyingbackpacker - June 9, 2009 - 19:40

The test e-mail seems to work fine, it's just that the e-mails send by the cron lags the embedded images.
Maybe because the emails become big due to the embedded images, bulk e-mail will demand lots of mailserver power.

#6

makr - July 18, 2009 - 14:01

its due to a mimemail-issue, see folkertdv's comment http://drupal.org/node/358439#comment-1426276
patching mimemail.inc: _mimemail_file() resolves this issue!

  $ret = $files;
  $files = array();
  $filenames = array(); //<--added, resets static filenames array
  return $ret;
}

Problem:
If the mimemail function is called, certain files are embedded and their cid's are stored in the filenames array (to prevent duplicates). Subsequent calls of the mimemail function will not embed files that have been embedded in previous mails.

Cause:
The static filenames array isn't emptied at the end of the _mimemail_file function like the static files array.

#7

yichalal - September 2, 2009 - 09:29

patch in #6 works for me to resolve this issue

 
 

Drupal is a registered trademark of Dries Buytaert.