Hi Alex:
I do all of that and more (e-mail, t-mail, text messaging) from a German product called David by Tobit. They have a COM interface that allows you to control the whole process. However, the API documentation is weak, the example code is C and VB and the developer forum is in German. However, when I have had issues, I post in English and usually, some friendly German takes pity on me and responds in English.
HTH
-=Gary