php - Limit e-mail flow in Laravel -
i'm working on app built laravel 4.2.
my app send pretty large amount of individual emails. problem smtp server has limit of max 300 mails/30 minutes , 5000 mails/day
that enough me. want control flow of sen email queuing them sent @ rate of max 300 mails/30 mins.
is there simple way of doing that, using laravels libraries?
you're on right track queue. had db table 1 row each email sent, , column tracking if email has been sent. create laravel command executed cronjob every 30 minutes send next 300 emails have not yet been sent.
a better, cleaner , around more scaleable option implement 1 of many queue engines supported laravel's queues. require modification of server environment installing mysql support database.
Comments
Post a Comment