Introduction
In this blog, we are going to discuss how to send SMS using third party APIs.
Step 1
First we need to create an account. Please click on the below link and complete your registration process.
Step 2
After login, we need to create API key. Please check the below figure.
Step 3
Let's discuss about API.
We need to consume the below API with proper query parameters.
The API URL is,
- https://api.msg91.com/api/sendhttp.php?mobiles=Mobile no.&authkey=$authentication_key&route=4&sender=TESTIN&message=Hello! This is a test message&country=91
Query parameters are:
- mobiles - In this parameter, we need to pass mobile number.
- authkey - In this parameter, we need to pass the API key.
- route - This parameter differentiates the SMS type such as transactional or promotional
- sender - Receiver will see this as sender id.
- message - In this parameter, we need to pass the actual message.
By using the below code we can send SMS to the respective mobile number.
Code Snippet

yuvaraj kPosted Oct 12, 2022, 5:02 AM
How to send regional languge wise SMS
Jaimin ShethiyaPosted Oct 22, 2019, 5:09 AM
Nice one :)
SoNuPosted Oct 14, 2019, 3:40 AM
Informative , thanks :)
Pankajkumar PatelPosted Oct 12, 2019, 1:59 AM
Nice article
Rajanikant HawaldarPosted Oct 11, 2019, 5:18 AM
Informative blog Madan