Saturday, June 8, 2019

Sending SMS Via SMS Service Provider in PHP

Here in India there are several service providers to send(Push) Commercial/Transactional SMS to DND/non DND mobiles. I have worked on one such module where the SMSes were being sent from our server at City Engineering College(Http://www.cityengineeringcollege.ac.in).

Here is a brief about the API Integration:

SMS sending requires you to sign up with SMS service providers in India such as Core Factors.

Now in PHP there is a way of executing or triggering a URL by the CURL command.

CURL is a way of executing a URL from within your program. The SMS that needed to be sent is encoded within the URL string and executed by the PHP program using CURL command.

There was a document from Core Factors Pvt Ltd that helped us in integrating the SMS APIs exposed by them.

Firstly to send SMS to Students/Parents mobiles we needed to login to their website and using the UI provided send bulk messages.

In the Server code that we used to send the SMSes we needed to login to the website using credentials provided by them. Then we form URL strings containing the SMS text and execute in loops the URL which sent the SMSes.

So that was the Gist of how SMSes could be sent to mobiles from a PHP Server.

No comments:

Post a Comment