kumarabhirup / bulk-mail-cli

Do quick, hassle-free email marketing with this small but very powerful tool! 🔥
https://bulkmail.now.sh
GNU General Public License v3.0
121 stars 24 forks source link

feat: Rate limit #27

Open ghost opened 4 years ago

ghost commented 4 years ago

Some ISP prevents you from sending so many mails in a given window of time.

I think it would be good for those to have a way to limit the mail per hour or something.

kumarabhirup commented 4 years ago

Users can adjust to rate limiting requirements by adjusting the time interval cron job setting to fit their needs.

But yes, this feature would be a nice addition. Your thoughts?

ghost commented 4 years ago

I might have something to suggest but I'm not sure if that's good enough

{
  interval: (1000 * 60) * 60,
  rate: 25
}

25 mails every hour.

Or maybe something that would enforce the cron to avoid having too many mails being sent and blocking the ISP...

kumarabhirup commented 4 years ago

Wow, this looks promising. I would like to add this feature.

Just wondering, are you a Node.js dev? If yes, we can add this simple feature together.

If not, I will do it myself but will take time most probably.

ghost commented 4 years ago

I did not get a chance to look at the source code yet but I have some experience using Node.js even though my thing is more DOM API and front end related stuff ^^

kumarabhirup commented 4 years ago

That's cool! You can take a look at the source code for a while, till then I'll think about how this feature can be implemented.