Hi there.....

I have a newsletter which I through a function called by a cronjob send out once a day....

Now on the subscription list there are a cpl og emails I can see doesnt exist anyone, because they belong to a domain that doesnt exists anymore...

I removed the emails from the subscription list and even went into the database and set the newsletter to 2 (sent) but simplenews keep trying sending to those mail everytime the mailspool cron is running...

i know I could go into the database and remove them from the spool table.... But isn't simplenews supposed to be able to handle if a mail address no longer exists? what if one have tens of thousands userprofiles and you on a regular basis experince someones mail adress no longer is valid?

Can it really be you have to be a database specialist and manually go into the database and regularly remove the broken mail adresses from the mailspool table?

Comments

greenwork’s picture

I am curious about this too

sk2013’s picture

We are also interested to find a solution to this issue..
Any one has any solution to offer.
Thank you

anrikun’s picture

A solution is to change this part in includes/simplenews.mail.inc at line 178, from:

<?php
  if ($message['result']) {
    $result = array(
      'status' => SIMPLENEWS_SPOOL_DONE,
      'error' => FALSE,
    );
  }
  else {
    // This error may be caused by faulty mailserver configuration or overload.
    // Mark "pending" to keep trying.
    $result = array(
      'status' => SIMPLENEWS_SPOOL_PENDING,
      'error' => TRUE,
    );
  }
?>

To:

<?php
  $result = array(
    'status' => SIMPLENEWS_SPOOL_DONE,
    'error' => FALSE,
  );
?>