Automate SMS sending from an Android phone
What is this ?
This service lets you send SMS programmatically using your own phone and SIM card.
You can also ask other people to give you their code, and then you'll be able to send sms messages using their
phone and SIM card.
Why should I use this ?
- In France, for 2€, you can send 33 SMS with Twilio/OVH/Vonage or send 2000+ SMS using a consumer plan and your own phone.
- The sender ID is simply your own number, so you will receive replies from customers.
Automatic sending
If you just want to send SMS using your phone, install the app, connect it above and then send SMS by making a
POST request to the /sendSMS endpoint with the longToken, to and text fields set.
curl --header "Content-Type: application/json" --request POST \
--data '{"to":"+33600000000","text":"hello world","longToken":"[your longToken]"}' \
https://sms.lecaro.me/sendSMS
Request Parameters
- to: target phone number in international format
- text: the text to send, beware of emojis and special characters that will make
the encoding much less efficient and force the usage of many concatenated sms.
- longToken: the token you got from the /longToken endpoint, see "Automatic connection" below.
- minSeconds (default 10) : make the sms sending take at least that much time. Most consumer plans will block you if you seed too many messages per minutes.
- maxSeconds (default 30): the send will automatically give up after that much time without a reply from the phone.
If your phone is on battery, has bad network, or the message is very long, it may need a higher maxSeconds parameter.
Make sure that your request library will wait for that long though, it might have a default 30s timeout.
Automatic connection
If you have your own web app, you can use this service to send SMS from other people's phones.
Limitations
- Wait for one send to finish before sending the next one.
- If the message sending times out, try an hour later, the phone might simply be offline.
- This app is not battle-tested and might be quite buggy still.
- There is no guarantee that this app will keep working in the future
- Everything that goes through the API is logged for diagnostic and abuse detection
- This app only writes to mobile numbers from the SIM's country.
- The SMS this app sends will appear in your regular "messages" app, combined with the ones you sent manually.
Notes
- If your phone has two sim cards for different countries, messages will be sent by the card of the same country as the target.
- If your phone has two sim cards for the same country, messages to odd numbers will to go one, and even number to the other.
This helps you stay under the 200 unique target number per plan limit.
- The API accepts urlencoded and json payloads
- This app will try to guess the country code if not provided.
- Most consumer plans are limited to 200 SMS correspondents per month.
- Made by Renan LE CARO