Sending SMS via PHP

I quit my last project of the year and I would like to send sms to client using php.

Is there a way that I can use my mobile phone as a GSM modem and send sms via php?

I tried "Ozeki NG - SMS Gateway", but not sure how to send sms via php.

if someone used / tried "Ozeki NG - SMS Gateway", then please let me know how to use it correctly?

Any suggestions please let me know.

I have a nokia 701. Can it be used as a gsm modem ?.

thanks

+4
source share
4 answers

Try this sample code from Twilio, I used it during one of the hackathons. For demonstration purposes, this may help. Depending on the country.

http://www.twilio.com/docs/quickstart/php/sms

+3
source

American Telcos allows you to send text messages in the form of emails. I have not played with this for many years, but I remember that Verizon was [Phone #]@vtext.com , where [Phone #] is the 10-digit cell phone number. There are different domains for different Telcoms that you can find. Best of all, it's free, instead of paying for a text message.

+1
source

If your phone is an android, you can use an application, such as SMS Gateway API , which will turn your phone into an SMS gateway and allow you to send and receive messages via PHP.

 $URL = "http://v2.smsgateway.me/API/Send/Single.php"; $postdata = http_build_query( array( 'Username' => " foo@bar.co.uk ", 'Password' => "password", 'Number' => "+447791064782", 'Message' => "Hello World!", 'Device' => 1, //Send from device 1 (optional) 'SendAt' => (time() + (60 * 60)), //Send in 1 hours time (optional) 'ExpireAt' => (time() + (60 * 60 * 2)) //Expire in 2 hours time (optional) ) ); $opts = array('http' => array('method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata)); $context = stream_context_create($opts); $result = file_get_contents($URL, false, $context); echo $result; 
+1
source

You can try https://www.clickatell.com/ , it is easy to use and integrates into your php code, you can use http or rest api.

0
source

All Articles