Event based on Date


I want to fetch the data of my members and check their membership end_date and automatically send them a mail for renewal before 1 day of their membership end_date.

kindly suggest a way to achieve this. Date should be compared with server date.


Write a custom python script and add it in the daily cron job of hooks.py file