For PBBooking to send testimonials and reminder emails you need to create a cron job. This can be easily done using cpanel. To set this up do the following.
Step 1: Log in to your cpanel. Normally cpanel can be accessed using
www.yourdomain.com/cpanel. Your host may have configured a different address for cpanel so if this doesn’t work check with your host.
Step 2: Open the
Cron Jobs menu item under the
Advanced tab in your Cpanel. The screenshot below shows where this is located.
Step 3: The final step is to fill in the settings to create the cron job. If you would like an email of the success or failure fill in the box that says
Add New Cron Job settings you should set these to the following:
- Common Settings: Once a day (0 0 * * *)
In PBBooking v4 the url for cron tasks has changed. The new URL is http://yourdomain.com/index.php?option=com_pbbooking&task=cron.cron
In version 4.0 you can also use the integration with easycron to set these links up automatically. For information about setting up cron jobs using EasyCron see the knowledge base article How to use Easycron with PBBooking v4.
NB: If your host is using apache with mod_sec you may need to specify a user agent for curl. You will need to check with your host whether they are using mod_sec. To add a user agent to curl include the following at the end of the curl command.
You can replace Mozilla/4.0 with any other user agent you prefer. The final settings in the
Cron Jobs window would look something like: