I am using a MySQL database and PHP.
My MySQL database contains the following records:
Name Address Data email Date Joy Fortblair 10 my@gmail.comm 1/22/2009 Bob Atlanta 15 bob@gmail.com 2/22/2009
My intention is to send the email using PHP with the following conditions:
-
The data is 1 day old. (
Current date - date = 1 day) -
It should mail all the email records at one time.
What is the best way to get started?
The SQL query is pretty simple and it goes as following
Now you have to get the contents of the result and put them in a string
Enjoy!