You can write a simple Android application that runs in the background that checks for text files. When you want to send an SMS, simply click on the new text file with the phone number and message on the SD card. To do this, you can use the Android add push command for Android. This is a hacker way, would not recommend it if it is just for basic testing
Another option is to use an online gateway such as Twilio. It is very easy to configure and makes it easy to send messages through a simple HTTP-api. You can use CURL to connect to an HTTP site through C ++.
source
share