Welcome Guest, Not a member yet? Register   Sign In
create cron job for send automaticaly sms to users
#1

hi
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"
admin=controller
sms=function
send_multi_sms=parameter
samane=folder of codeigniter
but this code is not working please help me for this problem
Reply
#2

do you have a working sms server and gateway?
God Bless CI Contributors Smile
Reply
#3

A cron job has nothing to do with Code Igniter.

To call a url with cron job:
http://serverfault.com/questions/299287/...a-cron-job

To execute a script with cron job:
http://www.thegeekstuff.com/2011/07/php-...eek+Stuff)
Reply
#4

(This post was last modified: 06-30-2016, 12:01 AM by webgooy.)

(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?
http://mydomain.com/[codeigniter folder]/index.php?admin/sms/send_multi_sms
Reply
#5

(This post was last modified: 07-05-2016, 01:40 AM by Nash.)

You may try external cron job like easycron.com which starts processes on the URL(like http://mydomain.com/[codeigniter folder]/index.php?admin/sms/send_multi_sms ).
Reply
#6

you want to send SMS automatically then you used[url=" https://msg91.com/sms-for-developers"] bulk SMS api java[url]this is very helpful.
Reply
#7

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.

Reply
#8

(This post was last modified: 01-23-2017, 02:26 PM by InsiteFX.)

Send Text Messages with PHP

Send SMS Text Messages to Mobile Phone PHP Tutorial

Manage Cron Jobs with Codeigniter 3.0 and MySQL
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#9

(This post was last modified: 11-15-2017, 12:20 AM by smsstriker.)

Here Get login code with API https://www.smsstriker.com/sms-gateway-a...vices.html
$username = "YOURAPIUSERID";
$password = "YOUAPIPASSWORD";
$data = "username="."$username"."
&password="."$password"."&to="."$numbers"."&type=1&dnd_check=0";
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$data);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
Reply




Theme © iAndrew 2016 - Forum software by © MyBB