Advertisement:

Author Topic: Maximum emails to send per hour  (Read 14194 times)

Offline iksa

  • Jr. Member
  • **
  • Posts: 113
  • Gender: Male
Maximum emails to send per hour
« on: March 31, 2013, 07:01:21 AM »
I think it would be great to have a setting "Maximum emails to send per hour" in the email queue settings. My server provider limits the number of sent emails per hour and the current setting that limits the number of emails per minute does not fit very well for that. Now I have to divide the limit by 60 in order to ensure that every email gets sent, but that makes the delivery of the whole queue unnecessarily slow because not every minute there is somebody doing a page load in my forum. If the limit was per hour instead of per minute, the delivery time would be optimal even if only a single person visits the forum once an hour.

Offline Ricky.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,057
    • Indian Linux Forums
Re: Maximum emails to send per hour
« Reply #1 on: March 31, 2013, 07:37:32 AM »
Hmm.. that  seems appropriate, shouldn't be hard .. may be option to send it per hour OR per minute... its already there.. see my next post.
« Last Edit: June 16, 2013, 02:18:20 PM by Ricky. »

Offline iksa

  • Jr. Member
  • **
  • Posts: 113
  • Gender: Male
Re: Maximum emails to send per hour
« Reply #2 on: March 31, 2013, 08:48:44 AM »
Why not a text field to specify the number of minutes in addition to the number of emails sent in that specified number of minutes?

Offline GreenHeart89

  • Newbie
  • *
  • Posts: 1
Re: Maximum emails to send per hour
« Reply #3 on: June 15, 2013, 01:31:33 PM »
I'd like to second this request have a setting to limit the maximum emails per hour.   Yesterday morning Bots managed to cause my website to exceed the maximum amount of emails allowed per hour.  112 were sent & i'm limited to only 90.            i'm currently using smf 1.1.18 & would greatly be thankful for this to prevent such problems.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,748
  • Gender: Male
    • Kindred-999 on GitHub
Re: Maximum emails to send per hour
« Reply #4 on: June 15, 2013, 08:06:52 PM »
1.1.x will never have this.
2.0.x already has a limit/throttle feature.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Ricky.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,057
    • Indian Linux Forums
Re: Maximum emails to send per hour
« Reply #5 on: June 16, 2013, 01:07:28 PM »
Throttling per minute is already there SMF and you can actually use per minute to do per are throttling , eg.. you have 100 mails per hour limit then it may go like .. around 1. 66 mails per minute.. so you may add 1 mail per min, which will go 60 mails.

MrPhil

  • Guest
Re: Maximum emails to send per hour
« Reply #6 on: June 16, 2013, 01:41:16 PM »
Still, many hosts do have both per-minute and per-hour caps, and even per-day caps. Granted, it's not a terrible hardship to be able to set only per-minute, but a per-hour cap could cause you to exceed the per-minute cap, and likewise for per-day. On the other hand, allowing only a per-minute cap can cause you to exceed the per-hour cap, and likewise for per-day (e.g., 20 per minute, 300 per hour -- you would reach the per-hour cap after only 15 minutes).

Note that some hosts are starting to put fairly low per-hour caps to avoid being labeled as spammers by email handlers. It's most unfortunate.

Offline iksa

  • Jr. Member
  • **
  • Posts: 113
  • Gender: Male
Re: Maximum emails to send per hour
« Reply #7 on: June 26, 2013, 11:14:29 AM »
Like I mentioned in my original request, if the forum is not very active, a per-minute limit will not be very effective if the host's real limitation is per hour. Like in Ricky's example, if there is only one visitor (page request) in the forum in an hour, only 1.66 mails will be sent during that hour even though 100 mails could be sent (and would be sent, if the limitation could be set per hour instead of per minute). And the per-minute limit cannot be increased because that causes a risk that the per-hour limit is exceeded if there sometimes are more visitors (page requests to be exact) per hour.

Offline jkmont

  • Semi-Newbie
  • *
  • Posts: 23
Re: Maximum emails to send per hour
« Reply #8 on: July 11, 2013, 10:41:59 PM »
Hi everyone,

I have same problem, and now my account suspended with my server for being email over limit: 200 per hour and 2000 per day. Where can I set this email action and how, can anybody help this.

Thanks

kat

  • Guest
Re: Maximum emails to send per hour
« Reply #9 on: July 12, 2013, 07:07:19 AM »
Admin>Forum Maintenance>Mail (Oddly enough)>Mail settings>Maximum emails to send per minute.

MrPhil

  • Guest
Re: Maximum emails to send per hour
« Reply #10 on: July 12, 2013, 11:48:16 AM »
Like I mentioned in my original request, if the forum is not very active, a per-minute limit will not be very effective if the host's real limitation is per hour. Like in Ricky's example, if there is only one visitor (page request) in the forum in an hour, only 1.66 mails will be sent during that hour even though 100 mails could be sent (and would be sent, if the limitation could be set per hour instead of per minute). And the per-minute limit cannot be increased because that causes a risk that the per-hour limit is exceeded if there sometimes are more visitors (page requests to be exact) per hour.

Has anyone looked at using wget or the like, via cron, to kick off an SMF action every minute or two? Just enough to cause the mailer to run if there's anything backed up. It could even be a new lightweight operation to explicitly just tickle the mail queue in batch. If the forum is getting exercised enough that it's checking every minute, presumably the tickle would be ignored.