By using perl you can send sms simply using gateways. I am demonstrating using a gateway in linux environment. For more gateways click in the below link. I am using bulksms.com. For this you need to create a account in gateway
http://www.funsms.net/sms_gateways.htm
Now I am gonna demonstrate using Net::SMS::2Way module.
Steps
Create a configuration file, /etc/sms.cfg, which looks like this:
verbose = 1
logfile = /var/log/sms.log
username = webnesbay
password = webnesbaypassword
Note that your username and password is of bulksms.com
In your script you can add the following to [...]

