You can use the pre-rolled modules or you can create your own. I recently looked into this and found that the main factor (for me) was which company to pass the messages to for sending.
The one I chose (www.textforce.co.uk) has a simple if badly documented HTTP request method of sending a text, for which it is pretty easy to use LWP on. In their case the return is an XML block which XML::Simple sorts out nicely.
That said though you should abstract the code for passing the message to the web-site from the application logic - that way when a better site comes along you can make the change seamlessly.
The things that seem to be common to most SMS message senders are: The message, the sender's name, the number(s) to send to and the type of message (normal or 'flash'). Other than these there are other things that each sender's API will differ on (username and password, etc).
-- tidiness is the memory loss of environmental mnemonics |