title: How to send emails via cron job usng PHP mysql
body: <p>i managed to send multiple emails (<a href="https://stackoverflow.com/questions/3296026/php-mail-multiple-recepients/3368291#3368291)">check here</a>).i am stuck with sending automated emails via cron. </p>
  
  <p>This is what i need - while the admin send emails, i store the message, emails, event date in the database. now i am trying to set a cron job to send emails to all these ids from the table with the message i have as a reminder. i am not familiar with cron job scripting, can anyone help in guiding me the right way to write script that i can place in cron tab. I am planning to send  two mails - one day exactly before the event and on the day of event.thanks</p>