user verification using SMS (php) - php

I am stuck in a situation in which when a user registers, he/she get a confirmation SMS on his/her mobile number, and he/she able to confirm their application by replying to the confirmation SMS, be repling like YES/NO to that confirmation sms..
Is there any SMS gateway available which provides the suitable functionality, I mean an API which takes user input from sms reply..
thanks in advance

Twilio has the ability to receive sms messages.
https://www.twilio.com/docs/quickstart/php/sms

There is a definite solution available for this. Try exploring with FrontLine SMS that offers a similar functionality, though you will have to then use a 10 digit registered number to send your confirmation SMS.
How to use frontline sms:
Get an internet dongle from a cellular company (Idea, Airtel,etc)
connect dongle to PC
install frontline SMS
Frontline SMS detects dongle.
Frontline SMS API's available to read incoming SMS on dongle and forward to your server with POST/GET methods.
Try it out & let me know it work.
Regards,
Mihir.
PS: i use Huawei dongle + idea connection.

You can use mVaayoo (http://www.mvaayoo.com/sms-gateway-features-benefits.html)
It supports Easy 2-Way SMS Integration with Website, ERP, CRM or any application.
They will provide the rich documentation which helps you to solve your problem.
You can go to that site and register and test it..
There are so many things in the documentation like return values by getting the return values.

You can use http://routesms.com/
This is easy to use and cheap. I used it for like 3 years. They have all types of API with documentation.

The answer is Yes, try Clickatell, they also support India.
Please note that this is copied answer from another question...original This question is a duplicate.
Expensive, but it is possible.

Related

Php button push notification android

I'm trying to implement push notification but I'm a little bit lost.
I just want to have a button in php and when I click it, a notification appear in all devices telling the users something like: "A new image is available in the web".
I read the GCM documentation but I'm not sure how to start.
I see that in some examples the users have to send their emails in order to register their "sender id"? it is necessary? I want the user don't have to register anywhere.
Can someone help me to start or give me a quick tutorial?
Thank's for all.
You will need to use curl to call the GCM, you can find examples like this all over SO, for example : how to send a notification to millions of android devices in php using GCM (first one that came up in a search)
And of course you will need the registration id's otherwise GCM doesznt know which device to send the notification to.
The solution is not so simple. You should at least use some package dedicated to this specific service. Also, you should read something about what push notifications are.
There are many services out there you can use to interface yourself with this specific kind of service.
Take a look to this service to get a first idea about the entire mechanism. Remember that you have to subscribe to a push service provider for every platform you want to use. For example the Apple Push Notification Service, or Cloud Messaging by Google.
Hope it's a good start for you.

Nexmo SMS is not receiving in PHP

I am using NEXMO API for integrating SMS functionality for my stuff.
However I am getting the error as "Unroutable message - rejected"
I don't understand what's wrong with my source code.
Actually I want to send SMS on Indian as well as Nigerian numbers, and I would like to mention that both numbers are free of DND service.
Do you have any idea guys which the primary setting is need to do for sending SMS.
[Currently I have created a test account on NEXMO].Is their any limitations while using test account ?
This might help others if they stumble upon this problem...
If you are using a trial account, you must add test account phone numbers using the API dashboard:
API Settings -> Edit -> Add Number (bottom of page)
Cheers

How to Automate SMS from PHP mysql at Particular point of Time

I have a website where people will book for Site visits.The Support Executive Confirms Site visit in the previous day. Once the Site visit is confirmed on the day on which site visit should happen the customer should receive SMS in morning telling that you have site visit today as requested.
I have Third party SMS Service
Now I Should Run a Code in PHP, MySQL which sends a SMS in the morning on which the site visit should happen
How can I Do that
Cron -> starts PHP-Script , PHP Script reads records from the SQL Table and checks if an SMS has to be sent, i assume its sms over mail, so you can use the integrated php function to send out mails to the sms gateway. For the guy confirming the visits, create another site with proper authentication where he can access the table and agree with the site-visits and anotherone for the customer to register for site visits
You need a cron job set to run in morning which will call your php file have code for looking in database for customers you need to send sms to.
Yo need to register to sum sms gateway provide 2 good one i know is clickatell and eztexting.
You can get there api for sending sms in there website.
Happy Smsing :D
Set a Cron Jobs in your Control panel.Try this link
http://www.devx.com/DevX/Article/39900/1954
If you would like to try an entirely different approach, check out:
Sent.ly - http://sent.ly
I am the founder of Sent.ly and thought maybe Sent.ly could help you out...
Sent.ly allows you to use an Android phone as an SMS gateway. So... you could just purchase a cheap Android phone ($150 or so) and set up Sent.ly on it and put a SIM in the phone.
By calling the Sent.ly API, the SMS would go out through the SIM in your Android phone. Sent.ly also has the option for scheduling an SMS for sending later which is your use case.
This also allows your PHP application to RECEIVE SMS in addition to just sending it out.
You can setup rules and if an incoming message matches a rule, it would be posted to a PHP page of your choice.
Since I am a great fan of stackoverflow, I would like to invite you to try Sent.ly. We would be happy to set you up with extra credits if you like. Just mail us at support#sent.ly
Cheers,
Varun
I have developed a system like this for use with some of my clients, and you can easily use it to integrate with your website or applications, through HTTP POST or WebServices (using PHP, C# or whatever).
If you are interested just leave an email or other contact information as a reply to this answer and I will gladly send you a sample code of how to send SMS, setting the desired time for sending messages, beyond other things, through our system.
You will not need to have any kind of cron knowledge and setup, it is all handled by our system, and the code is pretty simple and straight forward. You will only need to call our services upon site visit confirmation, setting the desired message sending time, and our system will do the rest.
Best regards.

SMS and PHP... and Google Voice?

I've been searching for a few hours on the best way to add sms notifications and reception to my PHP website. It seems that it's easy to send texts (to an email forward to a phone), but hard to receive them without an SMS gateway. Clickatell was recommended a lot.
But: I stumbled across a few article recommending Google Voice as a channel to send and receive SMS. (Here's one post: http://sudocode.net/article/190/receiving-incoming-smstext-messages-from-google-voice-in-php/)
Is there any reason I shouldn't/can't use a Google Voice number (and PHP) to handle my sms outbound and inbound messages?
I would check the Google Voice terms of service. If this is a commercial venture, I believe that's prohibited. Also since there is no official API, things could change at any time and break your app.
If you need reliable incoming or outgoing SMS there is no substitute for a gateway. I would recommend one, but I am not an impartial observer (see profile).
There is no official PHP API for Google Voice, however I used GVmax along with this PHP-SDK to create a website called Memebro.

Web form autorespond with SMS

I have been asked to design a website for a client but one of the requirements is that there is a form which includes such things as name, email, dob and mobile number once the user submits the form a SMS is automatically sent to the users mobile almost like a autoresponder.
How to achieve this?
This can be done using an external SMS gateway which will not be free, but also not awfully expensive.
However, you say you are not a programmer. For this to be built well and most important of all, safely, it might be a good idea to use the services of one.
If you want to do it yourself, consider using a pre-paid plan with the SMS provider of your choice so you can't be ruined by a bot flooding your form with thousands of requests.
Web sms functionality can be added to any web application or website. As #Pekka said you need to use an external SMS gateway and to connect your application to this SMS Gateway. Most SMS gateways provide external API which can be used to do that. They usually have documentation which you can use to find out how to integrate SMS notification in your PHP code. Unfortunately there are no reliable free sms service provides so you have to pay for this sms service. You can check http://www.phpjabbers.com/web-sms/ which seems to work a lot easy. Their integration code is pretty simple:
<?php
$SMSLIB["phone"] = '44111222333'; // your phone number
$SMSLIB["key"] = 'abcdefghijklmnopqrs'; // your personal API code
include("smslib.php"); // we will provide you with smslib.php file
sendSMS("test message", $SMSLIB["phone"]); // function which sends the message
?>
The easiest way to do this is to send it to their mobile numbers assigned email address (which is different by each carrier) then have it sent like a normal email.
The only issue is you will probably have to have a Dropbox with each carrier then add something to the PHP that changes the email address (ex. $tmobile would be tmomail.net).
More info:
How To Send Email To Any Cell Phone (for Free)
Most of mobile carriers offer free Email To SMS gateways which can be used to forward simple text emails to a mobile phones. And the good news, majority of those gateways are free and available to the general public.

Categories