I am trying to implement a system where emails to large (or small) groups of people are scheduled to be delivered by a cron job (instead of in a loop, while the user is waiting for them to finish sending).
There are two types of email a user could send: an email to everyone in the subscribers table, or an email only to members of a group. I suppose I don't really need to include the email to group members since they will be emails to small groups and not the large (all subscribers) group.
I'm trying to figure out how to structure my database so it makes sense, but I'm having a hard time even explaining how it should work.
Do you have any experience with this sort of thing that you can share? How should I structure my database to keep track of emails that are waiting to be delivered?