madhu madhu - 4 months ago 49
PHP Question

How to send an sms to a phone number using php- Codeigniter?

How to send an sms to a phone number using php- Codeigniter?

we have an sms-gateway-provider and I have a user-id, password and api-url. what i wanted to know is, how would i use these in a codeigniter framework, could i get a sample codes? I just wanted the proper codes to achieve this in Codeigniter.

Answer

its a simple script

$sending = http_post("your_domain", 80, "/sendsms", array("Username" => $uname, "PIN" => $password, "SendTo" => $Phone, "Message" => $usermessage));

and bingo