2Talk's softphone (from what I understand, it's a rebranded copy of Wengophone) allows you to send SMS messages - and it seems to work quite well. What I want to do, is to be able to set up a light SMS gateway which I can use to send out alerts for a couple of servers I want to keep an eye on - i.e. if the server goes down, I want to be sent a text message to say that this has happened.
Currently I'm using Nagios, which sends me an email whenever something significant happens. My thoughts were to set up some sort of application which would poll a POP3 mailbox for new mail every minute or so, and if there is a new message, send the contents of the subject line to me as an SMS message using 2Talk.
I can't seen to find any useful documentation that tells me how to do this, short of getting a copy of the 2Talkphone's source code and hacking it to do what I want. Does anyone have any creative ideas as to how I can achieve this?

