I created a function in cron that sends about 250 emails via wp_mail(). However, my hosting provider does not allow sending more than 50 emails every hour. Is there a way to force wordpress to cache all emails and send 50 of them every hour?
Thanks!
You can create a new table named like
tasklist
then put all "to send" emails in it and write your cronjob to run 50 of these entries for every hour. Put a flag column to table to mark which one is send and set your script to send the not flagged ones.