This is a straightforward little C program; it takes full email message from stdin, and outputs an SMS-tailored message to stdout, containing configurable portions of the email, such as sender, subject, body, etc. Samples and stuff are all included in the archive, but to give you a taste, here is my personal .mail2sms file. (Obviously, the file has to be named ".mail2sms".)
Here is the author's homepage: http://daniel.haxx.se/projects/mail2sms/.
This is a much more interesting little C program; it takes, either from stdin or directly as parameters, an SMS message. Along with parameters specifying the target device, it sends the SMS to your phone, as if by magic!
The program is quite sophisticated. Cellular providers are accessed by it via modules, and the modules include homepages, allowing both the program and the individual modules to check for updates, in a distributed development environment. This is certainly the backbone of our Email2SMS gateway, and needless to say, it has plenty of other scriptable applications.
Here is the author's homepage: http://zekiller.skytech.org/smssend_menu_en.html. Definitely go read this one, the guy is brilliant.
Okay, you probably don't need to download this from here. (In fact, the link is dead, just to discourage idiots.) What you do need is this: my .qmail-sms file. Actually, you can just make it yourself, you lazy ass. Here are the magic contents:|~/usr/bin/mail2sms -o |/usr/bin/smssend rogers 4165553223 -The QMail homepage: http://cr.yp.to/qmail.html. If you aren't already using QMail, you shouldn't be here, you should be <-- THERE.