I need to set up email notifications for a messaging system (Laravel/vue/vuex/Pusher)
.
I already have in-app realtime notifications, but I´d like to send reminders via email to users with unseen messages.
I am having trouble defining the logic to avoid sending spam. I do not want to send an email for every message and I also do not want to keep reminding them about the same messages.
What would be the best way to keep track of what messages I have already emailed the user about?