Probably the easiest way is to plug a GSM/3G/whatever phone or modem into the server and use
gnokii to send the text messages or just talk directly to the device sending the corresponding standard AT modem commands to its serial port (i.e.
/dev/ttyUSB0).