This quick guide will demonstrate how to create a simple PHP script to automate weekly SMS send-outs. Every Saturday at 8 am an SMS is automatically sent to all gym members with a link to a schedule of the coming week’s class schedule. This PHP file sends a preset message to a defined list of recipients.
It is good to have an overview of cron before we dive into our example.
In the above example, the cron job is set to send every 10 minutes — or more specifically, every 10th minute of every hour of every day of every month, every day of the week.