We had some issues with the latest dev. Rolling back to the version of 2009-02-22 solved these problems:

Using simplenews 6.x-1.0-rc6:

  • hotmail users received the plain text version
  • in outlook/thunderbird we sometimes received missing images. Images embedded in the template with CCK were ok. But others (hardcoded in the template) went missing sometimes. We think this only occured when an email was sent to multiple users, but this is not confirmed

simplenews statistics and analytics were also used.

Comments

jean-bernard.addor’s picture

We also had big trouble with 6.x-1.x-dev 2009-Apr-15, as the only other version mentionned on http://drupal.org/node/37911/release was 2008-09, I reverted to that one. I would apreciate to have numbered version for those cases.

Using simplenews 6.x-1.0-rc6, the following has been observed:
caracters improperly coded (unknown web client of cooptel.qc.ca)
empty body with no instruction to open an attachment (squirelmail)
• colorless text, including colorless and almost invisible links (yahoo)

I do not remember to have enabled Mime Mail CSS Compressor, so it was probably not enabled and the module was removed before I heard of it. Should I have enabled it ?

Now I just enabled Mime Mail CSS Compressor on a test website and here is a sample of that I find in my mail. Maybe it explains the colorlessness, the used theme is foliage, which gives color to h2 and h3 titles by css. It appear colorless with icedove and squirrelmail and as an empty message with no attachment with squirrelmail.

H2

<h2 id="toc0" style="margin:2px04px0;font-size:1.25em;color:#000!important;background:#fff;">titre 2</h2>

Link

<p style="margin-bottom:0.9em;line-height:1.5em;color:#000!important;background:#fff;"><a href="http://alimentsdici.info/" style="text-decoration:none;font-weight:normal;color:#000!important;background:#fff;">http://alimentsdici.info/</a></p>

In a way, it looks like something one would like to print. I do not remember how to proove it but it look like if some code from a printing css was used, like the following one!
http://alimentsdici.info/sites/alimentsdici.info/themes/foliage/print.css

I could make a test in switching the site theme to Garland. I do it and
obtain a nice underlined blue link with the following code, h2 is not colored by Garland:

<p style="margin:0.6em01.2em;padding:0;"><a href="http://alimentsdici.info/">http://alimentsdici.info/</a></p>

At this point, I have the impression that Mime Mail takes into acount the print.css file from Foliage (6.x-1.5 2008-Aug-25 or 6.x-4.x-dev 2008-Aug-24) . By comparison, Iceweasel does this only if asked. To correct the bug, Mime Mail or Foliage has to be modified. These observations have been communicated in specific reports to both teams:
#443964: Skip style sheets with print media
#443970: Mime Mail and print.css compatibility issue

At this point, I could also try to understand the problem observed with SquirrelMail 1.4.10a, but this is very low priority, I do not know enought of html mail standard.

Mime Mail works fairly good. Using simplenews with hotmail, the text/plain version of the email is displayed without any way to switch to text/html. I am curious to know if links can be underlined when below the mouse? Mail clients which gave an good rendering where: Icedove (Thunderbird), Claws Mail gtkhtml2, Fastmail, GMail and Yahoo.

Both module of Mime Mail 6.x-1.x-dev 2009-Apr-15 have been installed and some of the css of the theme have been modified.

That is the command used here to revert to an old dev version:

cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -d mimemail-DRUPAL-6--1 -r DRUPAL-6--1 -D 2008-09-22 contributions/modules/mimemail/
keesje’s picture

-double post-

keesje’s picture

Issues confirmed,
Biggest issue seems to be missing/unrecognised base64 encoded images, depending on mailclient.
In my tests Apple mail, Outlook Express, Outlook 2007 do show included images as missing.
Only Gmail and Thunderbird are showing the images without problems.

I also reverted to recent version with less problems.

I use mimemail with the php.tpl template method, I had to add a theme override to force clean HTML output and prevent inclusion of irrelevant style attributes:

function phptemplate_mimemail_message($body, $mailkey = NULL) {
return $body;
}

Works for me.

mindgame’s picture

I'm using Mime Mail 6.x-1.x-dev (2009-Apr-15) and Simplenews 6.x-1.0-rc6.

The following error occured after updating Mime Mail from the previous dev version (2009-Feb-22 ?).

When sending a test newsletter with embedded images to two or more recipients (as we did successfully before) only the first recipient's mail will contain the images.

I tested on a GMail account and when inspecting the email's html code I found that the img-tags were there but the src-attribute was missing.

Then I had a look here
http://drupal.org/project/cvs/37911
at Commit #174768 where a patch was applied about "duplicate image items".

When I remove the three lines dealing with $filenames in function _mimemail_file() of mimemail.inc, i.e. I undo the patch
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/mimemail/mi...
then the missing images appear again.

(Quick fix, didn't go deeper so far.)

ratnesh aarohi’s picture

Glad that i got to this thread - as i too was breaking my head why certain images where not being emailed.
My question is how do i get the previous dev version (2009-Feb-22) so that i too can roll back?
When i goto http://drupal.org/node/37911/release i think (for 6.x) i am getting only the latest (april) file.
Or if somebody can guide a non techie like me to solve this problem in any other way.
thanks

nicksanta’s picture

Hey guys, has there been any progress on this issue?

nicksanta’s picture

if you're using linux or osx, use this command to get the 2009-2-22 dev version (last stable one from all above accounts)

cvs -d :pserver:anonymous@cvs.drupal.org:/cvs/drupal-contrib export -D2009-02-23 -R -d mimemail contributions/modules/mimemail
webel’s picture

cvs export: authorization failed: server cvs.drupal.org rejected access to /cvs/drupal-contrib for user anonymous
cvs export: used empty password; try "cvs login" with a real password
webel’s picture

I am getting some images missing on arrival, and I can't figure out a pattern to which images are not sent, some are ok, and it is not size and it is not type (jpg, gif, png).

@mindgame I read this but my version mimemail-6.x-1.x-dev.tar.gz did not seem to have $filenames anywhere:

When I remove the three lines dealing with $filenames in function _mimemail_file() of mimemail.inc, i.e. I undo the patch
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/mimemail/mi...
then the missing images appear again.

I have: mimemail-6.x-1.x-dev.tar.gz:

/* $Id: mimemail.inc,v 1.31.2.2 2009/02/22 01:58:24 jerdavis Exp $ */

And I have "applied" the patch mimemail_2.patch by hand (because otherwise it failed) to ensure headers not mangled (reported elsewhere):

Index: mimemail.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mimemail/mimemail.module,v
retrieving revision 1.31.2.3
diff -u -r1.31.2.3 mimemail.module
--- mimemail.module	14 Apr 2009 23:08:59 -0000	1.31.2.3
+++ mimemail.module	19 Apr 2009 04:49:56 -0000
@@ -116,7 +116,7 @@
       }
     }
   }
-  $subject = mime_header_encode(drupal_html_to_text($subject));
+  $subject = mime_header_encode($subject);
   $body = theme('mimemail_message', $body, $mailkey);
   foreach (module_implements('mail_post_process') as $module) {
     $function = $module .'_mail_post_process';

I state that only for completeness, I don't think it's relevant to the image sending problem.

webel’s picture

Can somebody please release an improved version or a patch against a clearly known and downloadable version that incorporates both this fix and the fixes for the the known problems with subject mangling in HTML mails ?

webel’s picture

@mindgame I'm not sure that $filenames is the cause of my missing images, as it is not present in mine:

mimemail.inc,v 1.31.2.2 2009/02/22 01:58:24 jerdavis
webel’s picture

@askibinski May I observe that 'Problems with latest dev version' is not a very useful bug report title; it adds no more information than the metadata for the bug report. If it's a bug then clearly there are problems, and the version given for the issue says it is dev, and in the future the title 'latest' won't be true anyway. I'm creating a new bug report 'Some images missing after sending test email' or similar for just that aspect of the problems.

webel’s picture

I noticed @mindgames referred to this from #450806: Simplenews Embedded Images Not Displayed/Attached by intrafusion - May 1, 2009 - 15:58.

I will continue my report on the missing images problem there, applying the quick fix tip from mindgames to "the latest dev version"
/* $Id: mimemail.inc,v 1.31.2.3 2009/04/14 23:08:59 jerdavis Exp $ */

webel’s picture

I've moved my bug report contribution to #450806: Simplenews Embedded Images Not Displayed/Attached

webel’s picture

Vanishing image problem resolution (of sorts) reported at http://drupal.org/node/450806#comment-1597704.

grim assim’s picture

my 2 cents

big thanks to mindgame, your solution was flawless :)

removal of http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/mimemail/mi... the 1.40patch from my site fixed this for me

Mime Mail 6.x-1.x-dev (2009-Apr-15)
Simplenews 6.x-1.x-dev (2009-May-16)

New-WebMaster’s picture

i am getting the following error when tryin to send email using the website that i take care of...

Unable to send e-mail. Please contact the site administrator if the problem persists.
Your message has been sent.

can any1 help me...

jwaxman’s picture

The first thing to do would be to make sure it either is or isn't a Mimemail issue.
Switch over to plain text and see what happens.
What module is sending out the mail?

sebastian.grow’s picture

Title: Problems with latest dev version » Subscribing (somehow)

I've been trying to solve this issue on my own for quite a bit now, but either I'm looking in the wrong places or I am just missing something..

Drupal: 6.13
simplenews: 6.x-1.0-rc6
Mime Mail: 6.x-1.x-dev (2009-Jun-08)

I already tried the patch mentioned above, also tried removing it again.. no success..

The Problem I'm having is, that for some reason, only the first email is embedding images correctly.
And here's where the weird part starts:

This only occurs on SOME emails, to SOME Recipients only SOMETIMES.

If I send a test newsletter to 2 of MY email addresses, everything works fine. As soon, as I try sending it to several different emails, only the first email, received by an Outlook using user, is showing the embedded images correctly.
I'm using Apple Mail and also checked on Outlook 2007 via Parallels with the same email address and also different email addresses..

So, I just don't get, why sometimes the images are embedded correctly and in this case attached to the email and sometimes, they are shown as src="cid......@domain.tld"

I also tried disabling the download method private and setting it back to public, but no difference..

Also sending a real newsletter (so no test) is only working on Apple Mail and only for the first outlook received email..

This is driving me nuts, and I would greatly appreciate any help.

Thanks,

Seba

sebastian.grow’s picture

Title: Subscribing (somehow) » Embedded Images are not shown correctly

Sorry for changing the title.. my bad!

ikeigenwijs’s picture

subscribing

sgabe’s picture

Status: Active » Closed (duplicate)

Since everybody referring to the missing images when sending multiple messages, I think this issue is a duplicate of #358439: Images are only in the first message.