Automatically send email in PHP? [duplicate]

0

I have a website where you have a database, and in the same database, a part where you have some dates, some of which will still happen. What I wanted to do was to send an email to all users registered on the website when I arrived at each date of each line of the database.

What I liked to know, was how to do this email automatically. Arriving on that day, and the emails would be sent.

I work with PHP and Mysql. Any help on this?

    
asked by anonymous 28.04.2014 / 15:19

1 answer

3

Assuming you are using Linux: Schedule a daily task on cron . Make this daily task run a PHP script that connects to your banks and perform the desired task - in which case, send the emails.

    
28.04.2014 / 15:28