I would like to to have a notification system to alert the user via Google SMS system and register user with their phone number. I would like to send the alert when certain condition is reached in a PHP web application. Would it be possible? Could you please give some suggestion?
Yes it is possible. There are apis available for this functionality. You could implement this yourself and you can send text messages via email if you use an api to figure out the phone carrier of the user.
Related
In PHP if I save the users mobile number into my phpmyadmin database and want to push certain notifications to the users phone I would have to email them at that specified number. How would you go about determining the users carrier to email such as #vtext.com or #at&temail.com or #virginmobile.com ect. How would I determine the ending email to send to? I know there are sites online that can determine this already for you which I can possibly send a curl request to and fetch the carrier it displays on the screen but how do these sites specifically determine these carriers? If they can determine it so can I right? There must be a way?
Most carriers do not offer an email to SMS gateway, so you don't. Use a service designed for sending SMS instead. e.g. Twilio or Amazon Simple Notification Service.
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.
What can I do to verify that the mobile phone number on the registration form?
User: Website RegisterForm > Enter the telephone number > Phone confirmation code > Membership Ok!
How is this done?
You don't give much information on what technologies you're using, so there might be a better tailored solution for your case, but you'll need to generate your access code (ideally using a secure random generator), configure your backend to access a SMS Webservice like Esendex (please note, it's not free), send the code through it and then validate that the code the user inputs is exactly the one you've generated.
Here you can find a link to their SMS PHP SDK.
Consider using Twillio. They have an API to handle SMS and phone transactions. You can call the API from within PHP, and their rates are like 1 cent per text or less.
I'm looking for a method to send an SMS from a mobile browser. Currently I have a link:
<a href = 'some thing..'>Send SMS to Me</a>
The idea is, if the user clicks on the above link, a SMS is automatically sent to my phone, from the user's phone.
Note : I had tried <a href = 'sms:9xxxxxx?body...'> but its asks the user to confirm if they want to send an SMS. Does anyone have any ideas for this?
I don't think its possible without actually getting the users consent - imagine a solution where a website could get the phonenumber of any smartphone without the client allowing it? Sounds like a great start for a malicious use.
Your only possibility, besides building a web app to which the still has to insert his phonenumber manually, is embracing the fact that you reached a barrier that has been put there for your (and everyone else's) security and privacy.
One way of doing it is that, <a href = 'localhost/sms'>Send SMS to Me</a> this http link will probably send to the server and that server jsp or servlet should send the sms to you.
The sms: prefix in an anchor link can lead to the mobile phone's own SMS application to be activated and the SMS is the prompted to be sent from their mobile phone, as you say.
That method means you could prompt the user to send an email FROM their number TO your prefixed number in your HTML.
The alternative is to prompt the user to enter their mobile number on your website and then submitting that to your server you could use an SMS Gateway to send an SMS to them.
It's not clear from your question which direction you want messages to flow from and to but you'd get a more consistent result from sending the SMS from your web server via an SMS Gateway because then it wouldn't matter what kind of browser it was.
how to make a notification code in php?
when user make a booking request
how to notify admin that there were incoming booking request?
There are several possibilities, including:
Send an email notification to a known address
Use a database trigger to populate a view that the admin user will see on their app's page
Write a message to a queue (such as AMQP) that will be read by another application.