Jump to content

Issues With Code For Sending Sms


sabams

Recommended Posts

I USE THE CODE TO SEND SMS, WHICH WORKS FINE ON MY LOCALHOST BUT AFTER DEPLOYING THE SITE, IT STOPPED WORKING. PLEASE KINDLY HELP

 

 

$vars="username=".$username."&password=".$password."&type=0&dlr=1&source=".$_POST['from'].

"&message=".$_POST['message']."&destination=".$recipient;

 

 

 

$curl=curl_init('http://smsplus3.routesms.com:8080/bulksms/bulksms');

curl_setopt($curl, CURLOPT_POST, TRUE);

curl_setopt($curl, CURLOPT_POSTFIELDS, $vars);

curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);

$result=curl_exec($curl);

curl_close($curl);

Link to comment
https://forums.phpfreaks.com/topic/270403-issues-with-code-for-sending-sms/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.