First, my mails don't appear to be going out. The test emails work just fine, but when I tell it to go for real, nothing comes out. I've checked the mailq on my shared hosting machine, and I get:

                /var/spool/mqueue (1 request)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
m2D9C9wI070317 (Permission denied)
                Total requests: 1

Second, how can I check status? A certain number of emails will be sent each time cron runs - how can I check how things are going?

CommentFileSizeAuthor
#15 simplenews.233679.patch2.85 KBsutharsan

Comments

sutharsan’s picture

Currently the only way to tell the status of individual transmission is looking a the database.

Table simplenews_newsletter, field s_status: 0 = newsletter not sent, 1 = pending, 2 send
Table simplenews_subscriptions, field s_status. When above field is 0 or 2 the value of this field is 0; When above status is 1 (pending) you can find the following values: 0 = e-mail is not send; 1 = e-mail is send.
Note that when an e-mail is send it only means it is delivered to php, is does not mean it is actually handled by your mailserver or even delivered.

Ningbo1’s picture

OK, given that error in the mailq, what are the steps that I should take to troubleshoot this issue? All of my cron runs say "Cron run exceeded the time limit and was aborted." ever since I sent the newsletter.

And can you walk me through what happens between the database being marked as sent, and the mail being received by the mailq? This is running on a freebsd system, if it makes any difference.

Morgenstern’s picture

subscribing

edward.peters’s picture

I am having the same problem, newsletter going ok to test email addresses, and then when sent properly shows as sent, but the emails are not arriving. Any ideas what I should look for?

v0ice’s picture

Same problem here, Test-email is being sent out - no problem.
But when I try to send it live, I click Submit and it only states that: Newsletter "Newsletter Name" is being sent , but it never arrives.

Any clues?

v0ice’s picture

Version: 5.x-1.2 » 5.x-1.3

I've tried creating some categories, wich got me to the point that I got an error message saying I have to select a newsletter before the issue can be sent. Problem was, there was no way of selecting a newsletter!

SO.. I upgraded to version 5.x-1.3, and voila! I can choose wich newsletter I want the issue to be added to.

Thou that doesn't stop the original problem, no emails are being sent out.. back to square one.

Anyone got progress on this?

ayesha129’s picture

Version: 5.x-1.3 » 6.x-1.0-beta2

the problem seems to exist in version 6 too.... test version works just fine. but no mails being sent out in the real. anyone having a clue as to what exactly is the problem here...?

sutharsan’s picture

6.x has a debug option which can tell you if emails are handed over to php.
admin/content/newsletters/settings under Mail backend options, check Log emails.

Morgenstern’s picture

an easy way to check if PHP might be the source of this problem is to create a simple custom script with PHP's mail(....) function an check if this delivers your emails correctly.

I just experienced the problem that my test email was delivered to only some adressees. using the method above i was able to determine that not drupal but PHP or something else must be the problem...

sutharsan’s picture

Version: 6.x-1.0-beta2 » 6.x-1.0-beta3
Status: Active » Postponed (maintainer needs more info)

Additionally in the table simplenews_mail_spool you find the send status of individual emails (sorry, no admin interface yet).
email is pending, waiting for cron: status = 1
email is send (devlivered to php): status = 2

PLEASE investigate and test. Without your response I will close this issue.

Jan Van Hyfte’s picture

Sutharsan,

status of mail in simplenews_mail_spool table is 1.

I got following message when trying to send:
warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in xxxxx\modules\mimemail\mimemail.module on line 308.

At first I thought something should be wrong in the simplenews_send_node, but looking in my log it looks as something is wrong in the mimemail stuff.
I have tried to do some debugging (not a real pro), and I suspect mimemail.module for the bad behavior, although i cannot point the exact location nor reason.

Sutharsan, can you help us further?

sutharsan’s picture

No, sorry. No support for mimemail as long as there is no Drupal 6 compatible version available.

somebodysysop’s picture

I'm surprised no one has brought up the permissions issue, if it still exists in the 6.x version: http://drupal.org/node/256795#comment-841079

If this is the case (and not a php / smtp issue), I submitted a fix here: http://drupal.org/node/256795

sutharsan’s picture

Thanks for bringing it back to my attention. I will discuss it over there.

@all: if your email's don't go out AND anonymous users have access to the email the at #13 mentioned issue does not apply to you.

sutharsan’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new2.85 KB

If you experience problems sending emails which are, on the site, restricted to authenticated users. Please try the attached patch.
This will send emails using the permission of the node author.

Jan Van Hyfte’s picture

All,

Coming back to my remark in #11, look at http://drupal.org/node/305650, where the solution for this issue is presented.
I'm a very happy Drupaller now ;-)

I think this issue can be closed.

sutharsan’s picture

Status: Needs review » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.