send an e-mail on the date basis

one of the script is writing as fallow .

certification authority - exprire on July 16, 2056

How to send an e-mail to an e-mail id say abc@gmail.com one month before the expire date.

Thanks

Where do you get the expire date? What is its original format (string, numeric)?

Beyond that, you'll need a cron job that runs a script every day; the script looks at the expiration date and determines if this is 1 month from now; if so, the script emails the user.