I use a programme, written in Python, which sends sms through the sms providers. You might want to have a look to the source code:
http://www.moioli.net/Progetti___1/MoioSMS___Messaggi_GRATIS_da_Internet____22.html -- http://mail.python.org/mailman/listinfo/python-list