SendInternetSms - Send SMS through websites, from your Windows Mobile or PC

I had always been fond of making a program that would automatically send SMS messages through websites that offer free SMS. This idea got even stronger when I saw solidu’s post. But I didn’t want to use watiN, mainly because I wanted the process to be in the background. So I used Fiddler to find out which HTTP Requests and Responses were needed to send an SMS through a website. Then, I automated the process with C#.

This got me thinking a bit more: People just get bored of using either the SMS websites or a desktop application that automates the process. Because frankly, each time, you have to copy-paste one’s phone number. So, a better solution would be for the mobile phone you already have. How about this: When you send a regular SMS with your Windows Mobile, the program will automatically pick it up and try to send it through an SMS website. At last, I’ve made it!

“SendInternetSms” is the name I gave to all the projects included. It contains the following Visual Studio 2008 solutions:

  • SendSmsLib: A .NET (Compact) Framework library that defines an ISmsService interface. It allows easy configuration and loading of ISmsServices from different assemblies (.dlls). After being configured, one can use SendSmsLibTester Windows Forms application to easily send a SMS message.
  • SendInternetSms: Contains the SmsRerouter program. It allows automatic interception of outgoing SMS messages from a Windows Mobile 5 or 6 device (either Smartphone or PocketPC). It uses SendSmsLib. It contains a native C++ project and a C# program.
  • WebSms: An ASP.NET website that uses SendSmsLib to send SMS messages. My many thanks to my friend Alexandros Sigaras (a.k.a. mazohack) who made the design of the website! Default username and password are “user” and “pass”.

You can develop an ISmsService yourself, for any SMS website you can think of. The process of course is quite time-consuming, as you cope with Fiddler, cookies, and PHP/Ajax/Asp.Net quirks. If you create one, share it with us! Do note, it would be better if they’re developed with .NET Compact Framework, so that they may work on Windows Mobile phones, and not just on PCs. Right now, there are two ISmsServices included in SendInternetSms:

Now, a sneak preview of the three ways that one can send an SMS:

SendInternetSms Windows Mobile Screenshot
Windows Mobile

SendInternetSms Web Screenshot
Web

SendInternetSms PC Screenshot
PC

To download the file with all my projects, click here. The files are under the GNU GPLv3 license. That means it’s free and open source. There’s a ReadMe.txt included with instructions on how to configure the programs and how to install SmsRerouter on Windows Mobile.

Last, I would like to point out some of the development issues addressed/showed in SendInternetSms for Windows Mobile:

  • .NET Compact Framework for Windows Mobile devices. How to make a background process.
  • How to use Windows Mobile native API. E.g. Implementing the IMAPIAdviseSink for intercepting outgoing SMS messages and using MAPI.
  • Multithreading using ManualResetEvent and the ThreadPool.
  • Platform Invoke: How the managed application calls the C++ project’s functions. How callback functions can be used.
  • Smartphone/PocketPC compatibility. Detect the type of the current device and show accordingly either a taskbar notification or a message box.

I’m waiting for your comments, and maybe your ISmsServices. Enjoy!

Updated:

Leave a comment