How to send email reminders automatically in Yii 2 basic application template

I am using Yii 2 basic application template. I have a requirement that email reminders should be send to the users automatically.

I have a scenario where user creates task for another user. Suppose User A creates task for User B. The task has End Date field. Consider a User A creates the task for User B whose End Date is 7-July-2023.

So reminder email should be send to the User B automatically one day before 7-July-2023 if the task status is still ‘Not Started’ or ‘In-Progress’.

I am using Windows Operating System.

Yii2 Queue

Ok I will try

Just create a scheduled task in the OS to check and send email if it’s time. Make a command controller and use it in the scheduled task

Ok thanks, I will try