How to write a method to run automatically only when a conditions comes true
<p>Hi I want to send a mail to all the customers automatically just 5 days before his licence will get expired.So I have to check the corresponding condition everyday even though I am not running the app, can I actually do it ? if yes suggest me a good way to do this.</p>