2

Can someone provides with the tutorial on how to send sms text messages to mobile phone with 11-digit phone number and not 10-digit phone number using any free gateway?

Or is there any way I can develop my own using ?

Thank you.

vvns
  • 3,548
  • 3
  • 41
  • 57
mutago
  • 31
  • 1
  • 1
  • 3
  • Google is your best friend. I asked it "php sms" and it gave me [this](http://net.tutsplus.com/tutorials/php/how-to-send-text-messages-with-php/). Hope this one helps. – MisterBla Sep 12 '13 at 07:56
  • Please go through this link http://stackoverflow.com/questions/1383469/sms-text-message-sending-via-php?rq=1. This will help you. – ihaider Sep 12 '13 at 07:59

1 Answers1

5

You need to have an SMS API Provider to achieve what you are trying to do. The API Provider even gives you a readymade PHP code for making the calls to their API.

Also,

Have a look at TextMagic and there is a wrapper available here

Something like this

$api = new TextMagicAPI(array(
    "username" => "your_user_name",
    "password" => "your_API_password", 
));

$text = "Hello world!";
$phones = array(9991234567);
$is_unicode = true;

$api->send($text, $phones, $is_unicode)
Shankar Narayana Damodaran
  • 68,075
  • 43
  • 96
  • 126