Title: day limit
Last modified: August 31, 2016

---

# day limit

 *  [vonsch](https://wordpress.org/support/users/vonsch/)
 * (@vonsch)
 * [10 years ago](https://wordpress.org/support/topic/day-limit-1/)
 * Hi eventualo,
 * I would suggest a different approach to the day limit. The current approach uses
   the lower of day limit/batch or the batch limit.
 * I believe you should rather use the approach of putting the daily limit into 
   a separate global variable or database option by a cron job on a start of each
   day and then deduct the batches like ‘daily sent’ – ‘elements in batch’
 * [https://wordpress.org/plugins/alo-easymail/](https://wordpress.org/plugins/alo-easymail/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [eventualo](https://wordpress.org/support/users/eventualo/)
 * (@eventualo)
 * [10 years ago](https://wordpress.org/support/topic/day-limit-1/#post-7321452)
 * I understand your point, it’s an interesting alternative. But the flaw of this,
   and of plugin actual engine of course, is the risk of few visits to the blog,
   that means not-periodic batches and the daily limit cannot be reached anyway.
   
   As suggested in plugin setting page, a good solution is to apply a real external
   cron job that can send a batch every precise interval and can send all the emails
   untill the daily limit is reached.
 *  Thread Starter [vonsch](https://wordpress.org/support/users/vonsch/)
 * (@vonsch)
 * [10 years ago](https://wordpress.org/support/topic/day-limit-1/#post-7321455)
 * I did set an external cron, this quasi cron of WP is very unreliable.
 * Still, assume that my mailserver can handle 10k a day, 100 in a batch. In the
   current code you take the minimum of the 10k/batch vs. max. batch. Assume that
   5 min. cron is OK.
 *     ```
       // so... how much recipients for this interval? // (86400 = seconds in a day)
       	$day_rate = alo_em_get_dayrate();
       	$tot_recs = max ( floor( ( $day_rate * $diff_time / 86400 ) ) , 1 );
       	// not over the limit
       	$limit_recs = min ( $tot_recs, alo_em_get_batchrate () );
       ```
   
 * $tot_recs = max ( floor ( 10000 * 300/86400), 1) = 34
    $limit_recs = min(34, 
   200) = 34.
 * Thus the daily limit does not allow me to reach the batch limit.
 * Also, have 2 other ideas:
    – it would be good to automatically remove the addresses
   where the mail is not delivered and – to add number of unsubscribed users to 
   the stats page – for the given newsletter
 *  Plugin Author [eventualo](https://wordpress.org/support/users/eventualo/)
 * (@eventualo)
 * [10 years ago](https://wordpress.org/support/topic/day-limit-1/#post-7321514)
 * About your ideas:
    1 – You can remove the addresses where email is not delivered
   using plugin “bounce” function: for security reason the bounce check is not automatic
   anymore, you can check them manually in dashboard. 2 – Good idea, I’ll keep it
   in mind for future.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘day limit’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/alo-easymail_574f4b.svg)
 * [ALO EasyMail Newsletter](https://wordpress.org/plugins/alo-easymail/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/alo-easymail/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/alo-easymail/)
 * [Active Topics](https://wordpress.org/support/plugin/alo-easymail/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/alo-easymail/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/alo-easymail/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [eventualo](https://wordpress.org/support/users/eventualo/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/day-limit-1/#post-7321514)
 * Status: not resolved