How to send SMS for free using PHP? [closed]
want to improve this question? update the question to focus on just one problem when edit it .
Closed for 7 years.
improve this questionI would like to know if there is any way to send SMS for free to mobile phones in Brazil. I have seen some PHP systems with this function, and I would like to have this function in my system As well.
2 answers
Used to send using Google Calendar , but always for the same number checked, I used for a while to alert system.
If you really need to send SMS from your system, there are two alternatives, both paid:
1) Use a messaging service that will charge you per message. There are several, in Brazil I know only the zenvia.com.br (it is not marketing, I have no relation to the brand).
- in this case, you it would integrate with the company's system and send the messages via the internet (API). They have modules for various systems, and ready-made libraries for various languages, properly documented.
2) Use a modem coupled to the server
-
Solution only when there is local server, I use and comes out very cheap. Using a 3G modem, to install on Linux is usually complex. After all set up, I call via CLI, using
echo '$mensagem' | sudo gammu sendsms TEXT $numero -unicode
To send SMS via code what basically happens is that you use an API of some operator that when sending your request to the same it will trigger a mobile device that will send your SMS.
I do not know of any service of this kind national free, only paid just contact an operator of your preference that they will release a documentation for you to start using (paying the due cost of course).
If you want International Services is possible to find some free, just ask Pro our friend google.