I'm pulling my hairs for quite a while. It happens that some emails are not sent. According to watchdog, subscriptions module sends emails. For each user, there's an log that acknowledges that notification was sent:
subscriptions
Date Friday, 27 January, 2012 - 12:11
User xxxxxx
Location http://hostname.domain.org/
Referrer
Message Notification sent to...
Severity notice
Hostname 172.16.180.34
Operations
However, watchdog says that cron sent only 41 (or 100 depending on its mood I guess) messages:
cron
Date Friday, 27 January, 2012 - 12:11
User Anonymous (not verified)
Location http://hostname.domain.org/
Referrer
Message Subscriptions sent 0 single and 41 digest notifications in 7 of 240 seconds. 0 queue items remaining (plus 222 suspended), 228 seconds left for other cron client modules.
Severity notice
Hostname 172.16.180.34
Operations
The trouble is that there are over 150 emails that should be sent at a time. Looking into the postfix logs, I realize that some emails are sent to a few users but it happens that the same user does receive one email and not the next one.
Any help would be greatly appreciated. We're running drupal 7.10
Comments
Comment #1
salvisWhere does your 150 number come from?
41 digests can easily mean 150 notifications.
If you do not get messages such as 'Error sending e-mail (from %from to %to).', then your mail_system has accepted the number of messages that Subscriptions reports as having been sent.
What exactly do you expect to happen, and how exactly does what you see deviate?
I would be very surprised, if the single-user watchdog entries didn't give a count of 41 and if your postfix logs didn't show 41 emails having been sent. Where exactly is the problem?
P.S. "mood" is not involved here.
Comment #2
dflasse commentedMaybe I haven't been clear. I do apologize for that.
In watchdog, I have, for instance this entry:
Type subscriptions
Date Friday, 27 January, 2012 - 12:11
User damien
Location http://hostname/
Referrer
Message Notification sent to...
Severity notice
Hostname 172.16.180.34
Operations
Subscription module seems to think he did send a notification to 'damien'. However, even though his email address is correct, the user never gets any message. Postfix logs doesn't show anything about an email sent to damien's email address. Strangely enough, some users receive the notification, some don't. Most of the time a user who received it the first time will receive it the second time but that's not always the case (that's why I tried a pathetic humoristic line referring to its mood)
Comment #3
salvisNo need to apologize.
This means the failure is outside of the scope of Subscriptions. If Drupal core returns "success" without having sent anything, it's unlikely that Subscriptions can do anything about it.
There must be some other issue in your installation. Do you maybe have a buggy alternative mail system installed, e.g. for sending HTML mail instead of text mail?
If you cannot find the culprit, you'll need to start with a virgin test installation of core and just Subscriptions, check if that works, and then gradually add modules/themes to work towards your production. It's a painful process, but I see no other solution, sorry...
Comment #4
salvisHave you been able to find any clues about this?
Comment #5
dflasse commentedWell. Yes. I did remove the HTML mail module. It looks like it was the culprit. I must say I'm a bit pissed : it doesn't work and it does not log any error.
Anyway, thanks for your help!
Comment #6
salvisPlease bring it up in the HTML Mail module's queue then. I would like this to work, and I sort of expect some problems (like HTML elements or entities showing or things like that) that we'll need to work on, but the basic functionality needs to be in place first.
Please open a new issue when/if we get to that point.