Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending SMS from website to users - how?

I have email notifications on my site but I want to add SMS notifications also. I am lost how to do this. Is it purely coding or do i need to engage in partnerships with phone providers world over or buy a service or how does it work. And for the coding are there frameworks i can use or have to do it from ground up? My social network is in php and mysql. Do i need anything from the database for this, like to store the messages or is that all on the ISP's end?

like image 322
mikey Avatar asked Oct 12 '25 12:10

mikey


2 Answers

You need either a service for that, or to set up your own infrastructure (GSM modem, etc.). Best go with an SMS Aggregator, such as Clickatel. The technical term for this kind of service is "SMS Gateway".

Whichever gateway you choose, you need to find out what their API is and use it to send SMS.

like image 75
Asaf R Avatar answered Oct 14 '25 01:10

Asaf R


I recommend Twilio. I used them to send SMS and synthesized voice notifications for an agricultural telemetry monitoring application I developed, and in my experience they have a fantastic service at a very reasonable price. (If I sound like a shill, I'm not -- just a happy customer.)

As for integration, they have a REST-based API that's easily used from PHP. I think they even have a PHP library, although I haven't used it myself.

like image 45
Ben M Avatar answered Oct 14 '25 01:10

Ben M



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!