bashar.ayyash
bashar.ayyash

Hi,

I developed a plugin to store products expiry date, I want OctoberCMS to send email notification when the products is close to expiry date (Month left to expire, Week left to expire)

How can I accomplish that? should I use crontab to monitor the date?

Please advice,

astates
astates

bashar.ayyash said:

Hi,

I developed a plugin to store products expiry date, I want OctoberCMS to send email notification when the products is close to expiry date (Month left to expire, Week left to expire)

How can I accomplish that? should I use crontab to monitor the date?

Please advice,

You're looking for task scheduling. Docs can be found here. You'll also want to use an event and listener for the email to send off when the logic for your expiry is satisfied.

1-2 of 2