Tiny SMS Gate is a tiny (GPL 2 License) SMS gateway for Android. It allows you to send and receive SMS messages through your phone, over regular ol' HTTP. Nothing more.
As such, I have to ask that you please, please don't use this outside of a trusted LAN. While there is an option to protect against unauthorized outgoing SMS messages, it is not secure. It's still vulnerable to MITM attacks.
Full disclosure: This project is running NanoHTTPD in the background. It's pretty great, I'd highly recommend it.
There are some code samples here. They're written in PHP.
Here's the skinny though:
- Open Tiny SMS Gate
- Set up your Preferences
- Start the internal server
Then, from another server, e.g. Apache or something written in node.js
- Set up a page to receive SMS data
- Write some functions to send SMS data to Tiny SMS Gate
- Use them
I just wanted to text from my PC without having to go through some third party. Others have used similar apps (none of which worked for me, either broken or sketchy) to set up small SMS services.
Sky's the limit, I guess.