Many web-hosts have limits on the number of emails that may be sent, before the site is considered spamming. For example 200/hour, or similar. It would be good if this module could support such a limit, and send queued emails over as long a period of time as required. Moreover, we need some sort of priority between

The typical use case is when a newsletter has to be send.

A patch has been proposed for Drupal 6, but there is nothing to limit this rate in Drupal 7. What I propose is the following:
Patch 1. Use a minimum waiting time between two sent emails using the Drupal locking mechanism
Patch 2. Define multiple queues to have different priorities for emails (e.g. password information should be sent before newsletters)

Comments

bpiwowar’s picture

tboyd@commplus.ca’s picture

I have a service provider who limits the number of mass emails to be sent to 500 per hour. Will this patch to queue mail address this issue and if yes, to what file do I add the patch?

steven jones’s picture

Yes, this patch will probably help you.

You can find instructions for generally applying patches here:
https://drupal.org/patch/apply

göran’s picture

Would be grate if this patch could be updated so it work on the latest version 1.5 and above.

The patch seams to be to old and will not apply on Queue Mail version 1.5

jrb’s picture

Version: 7.x-1.2 » 8.x-1.0-alpha3
Status: Active » Needs review
StatusFileSize
new2.74 KB

There hasn't been any work on the Drupal 7 version of this issue in several years. Attached is a patch that implements this same thing for the Drupal 8 version.

  • sinn committed 58bc001 on 8.x-1.x authored by jrb
    Issue #2165023 by jrb: Email throttling with minimum waiting time
    
  • sinn committed 89484a4 on 8.x-1.x
    Issue #2165023: Email throttling with minimum waiting time
    
sinn’s picture

Status: Needs review » Fixed
sinn’s picture

For tracking D7 version please use ticket https://www.drupal.org/project/queue_mail/issues/2294445.

Status: Fixed » Closed (fixed)

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