Sending Weekly Stats Mail to Advertisers

Weekly Stats Mail is performance update mail for the Ads which will be sent to all the advertisers of your site.

You need to set up a cron job for the 'Cron job url for Weekly Stats email' from the SocialAds back-end settings view.

weeklycron

Setting Up a Cron Job

A. On Linux Based Server Environments

On most Linux server enviroments, you can simply run the command below as often as you are comfortable. We strictly recommend that you run it for every Week.

lynx -source "http://domain.com/index.php?option=com_socialads&tmpl=component&task=sendStatsEmail&pkey=xxxxx" > /dev/null

lynx is a text based browser that is installed in most hosting environments. If you do not have lynx installed, you can use other alternatives such as wget as below,

wget -O /dev/null "http://domain.com/index.php?option=com_socialads&tmpl=component&task=sendStatsEmail&pkey=xxxxx" > /dev/null

A Cron job can be setup using the command line in any of the ways above.

Setting up cronjob in CPanel 11

To add a new cronjob in CPanel 11 variants, logon to your CPanel and click on the "Cronjobs" link under the "Advanced" section as the screenshot below.

Image:cronjob1.jpg

Upon clicking on the cronjobs, you will then be directed to a page similar as below. In this example, click on the "Standard" button to proceed.

Image:cronjob2.jpg

Then on the screen below, enter the following options,

Command to run: lynx -source "http://domain.com/index.php?option=com_socialads&tmpl=component&task=sendStatsEmail&pkey=xxxxx" > /dev/null

OR

Command to run:
wget -O /dev/null "http://domain.com/index.php?option=com_socialads&tmpl=component&task=sendStatsEmail&pkey=xxxxx" > /dev/null

Now add a new  cron job with the schedule such that it will run once in a week.

weekcron2

Once you have added the cron job successfully. You can see it in the Current cron job list

weekcron3