Yes, this is possible in XYZ Email Manager script and in the Newsletter Manager/XYZ WP Newsletter, if your server allows you to set the cron job or scheduled task.

What is cron?

Cron is the name of program that enables unix users to execute commands or scripts (groups of commands) automatically at a specified time/date.

A cron job allows you to run a certain command at times set by the job. For example, you could set a cron job to send emails every hour/day.

You can set the cron job from your control panel. The mainly used control panels are cpanel and plesk.  The cron job is also known as scheduled task.

You can also set the cron job from the terminal.

For this please go to the Terminal or  UNIX / Linux shell prompt. You can use any software like putty or SSH login to connect to terminal.

To edit your crontab file, type the following command at the UNIX / Linux shell prompt:

crontab -e

Your cron job looks as follows

1 2 3 4 5 /path/to/command arg1 arg2
or
1 2 3 4 5 wget www.yoursite.com/cron.php
Where
1: Minute (0-59)
2: Hours (0-23)
3: Day (0-31)
4: Month (0-12 [12 == December])
5: Day of the week(0-7 [7 or 0 == sunday])
/path/to/command - Script or command name to schedule

To run the cron job every minute or every day, we can use the operator * (The asterisk) as a value in the field. An operator allows you to specifying multiple values in a field. There are three operators:

  1. The asterisk (*) : This operator specifies all possible values for a field. For example, an asterisk in the hour time field would be equivalent to every hour or an asterisk in the month field would be equivalent to every month.
  2. The comma (,) : This operator specifies a list of values, for example: “1,5,10,15,20, 25″.
  3. The dash (-) : This operator specifies a range of values, for example: “5-15″ days , which is equivalent to typing “5,6,7,8,9,….,13,14,15″ using the comma operator.
For example, if you want to run a file cron.php that is available as www.yoursite.com/cron.php . You can use the following command in the crontab.
To run the file every minute,
* * * * * wget www.yoursite.com/cron.php
For every 5 minutes,
*/5 * * * * wget www.yoursite.com/cron.php
For every hour,
0 * * * * wget www.yoursite.com/cron.php

For every day,

0 0 * * * wget www.yoursite.com/cron.php

Run the file at 2:30pm on the second of every month,

30 14 2 * * wget www.yoursite.com/cron.php

Run the file at 11 pm on weekdays,

0 23 * * 1-5 wget www.yoursite.com/cron.php

 

Click the following link to see how to setup the cronjob  in cPanel and in Plesk.

Cron job in cpanel

Scheduled Task in plesk

Note : In some server, they don’t allow to use cron jobs. In such a situation, you can use third party sites like easycron to run the cron.

 ----------------------------------------------------------------------------------------------------------------------------

Please Contact Us if you have any questions or suggestions.

Visit XYZScripts.com  -  Official Blog  -  Knowledge Base (F.A.Q)  -  Documentation (User Guide)

Join us on Facebook  -  Twitter  -  Google +