Sending reminder emails to users based on their last activity date
Hello,
I want to send reminder emails to my users if they have not completed their profile.
I have a last_active_at date column and profile_complete boolean column in users table.
I want to send reminder notification to users whose profile_complete is false after 24 hrs, then 1 week and then 1 month from their last_active_at date. After 1 month, the reminder emails will not be sent to them until their activity date is updated.
I'm thinking of creating a job and scheduling it to run everyday, but I'm having a hard time implementing the logic.
@Sinnbeck Hmm, I was thinking of doing with 'last_active_at', '<', $yesterday, so it was causing the reminder to be sent everyday instead of just one day. I didn't even think of comparing equal date, thanks for this. Doing it like this now: