I would like to send an email to users through Gmail 1 month before of their passport expiry date. I am totally new to programming and I have read somewhere I can achieve it by trigger but I don't know where to start.
I am using XAMPP.
Here's my MySQL table structure:
Email subject should be:
EmployeeName your passport is expiring on Expirydate Please Renew it ASAP