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.

Comments

Tmanagement’s picture

Somebody?

Sutharsan’s picture

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.

mr.morton’s picture

DOUBLE POST... sorry

mr.morton’s picture

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

aoturoa’s picture

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.

makr’s picture

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.

Stijn Vanhandsaeme’s picture

patch in #6 works for me to resolve this issue

Sutharsan’s picture

Status: Active » Closed (duplicate)
mtpultz’s picture

Title: simplenews and mimemail combination, pictures only got send to first registered email adres » Mime Mail not showing markup in hotmail
Project: Simplenews » Mime Mail
Version: 6.x-1.0-rc6 » 6.x-1.0-alpha1
Category: bug » support
Priority: Critical » Normal
Status: Closed (duplicate) » Needs work

Mimemail sends out html emails and then doesn't show the html markup in hotmail. Seems to be due to it using UTF-8 instead of iso.

Sutharsan’s picture

Title: Mime Mail not showing markup in hotmail » simplenews and mimemail combination, pictures only got send to first registered email adres
Category: support » bug
Status: Needs work » Closed (duplicate)

mtpultz, your problem is a different one, this is about images. See #372710: HTML emails are text-only in Hotmail (patch available at #52) Why is your conclusion that it is caused by UTF-8? What were your results with #6?

Reverting category, title and status.

mtpultz’s picture

Sorry, figured since my images weren't showing up due to no html I could join in. I figured it was UTF-8 from a forum post from a year ago and also hacked it with a php mail() call and changed it to iso-####-1 (can't remember off the top of my head) and it works in hotmail.

Thanks for the redirect

mikgreen’s picture

Version: 6.x-1.0-alpha1 » 6.x-1.0-alpha2
Status: Closed (duplicate) » Reviewed & tested by the community

Patch #6 worked for me too. I think it should be committed, otherwise problem persists.

sgabe’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

Thanks for your feedback, but this issue is a duplicate of #358439: Images are only in the first message. Please do not change this, instead leave a comment in the original issue.