CodeIgniter Forums

Full Version: create cron job for send automaticaly sms to users
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i try to create cron job in cpanel for sending sms automaticaly.and i paste my code below.
 /usr/bin/php /home/webgooy/public_html/samane/index.php admin sms "send_multi_sms"
samane=folder of codeigniter
but this code is not working please help me for this problem
do you have a working sms server and gateway?
A cron job has nothing to do with Code Igniter.

To call a url with cron job:

To execute a script with cron job:
(06-29-2016, 08:30 AM)marksman Wrote: [ -> ]do you have a working sms server and gateway?

yes i have
below url do send sms to number but need login to script. is it possible that to make problem?or my job cron is wrong?[codeigniter folder]/index.php?admin/sms/send_multi_sms
You may try external cron job like which starts processes on the URL(like[codeigniter folder]/index.php?admin/sms/send_multi_sms ).
you want to send SMS automatically then you used[url=""] bulk SMS api java[url]this is very helpful.
You can get sms gateway service provider to send sms by Top 5 Bulk SMS Service Provider in India with SMS API. these services are cheaper then other marketing tool so it take a place of marketing tool now a days.
Here Get login code with API
$username = "YOURAPIUSERID";
$password = "YOUAPIPASSWORD";
$data = "username="."$username"."
$ch = curl_init();
$response = curl_exec($ch);
echo $response;