Net::SMS::O2

A module to send SMS messages using the O2 web2sms gateway
Download

Net::SMS::O2 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ave Wrigley
  • Publisher web site:
  • http://search.cpan.org/~awrigley/

Net::SMS::O2 Tags


Net::SMS::O2 Description

A module to send SMS messages using the O2 web2sms gateway Net::SMS::O2 is a Perl module to send SMS messages, using the O2 web2sms gateway. This module will only work with mobile phone numbers that have been registered with O2 (http://www.o2.co.uk/) and uses form submission to a URL that may be subject to change. The O2 service is currently only available to UK mobile phone users.There is a maximum length for SMS subject + message (115 for O2). If the sum of subject and message lengths exceed this, the behaviour of the Net::SMS::O2 objects depends on the value of the 'autotruncate' argument to the constructor. If this is a true value, then the subject / message will be truncated to 115 characters. If false, the object will throw an exception (die). If you set notruncate to 1, then the module won't check the message length, and you are on your own!Pragma: no-cache Via: 1.0 www3 (HTTP::Proxy/0.07) Accept: application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* Accept-Language: en-gb Host: sendtxt.o2.co.uk Referer: http://sendtxt.o2.co.uk/webOriginate/action/viewHomePage User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; Q312461) Content-Length: 128 Content-Type: application/x-www-form-urlencoded Cookie: anonP3=Ave; username=awrigley; QE3=UmFuZG9tSVYa8uqjNRdebN1ccKhWTkav; rAT=qCsxqa-8q_UNEMeYxegp6dxlG3Pm_mPi; rID=44413; JSESSIONID=2flHC7azFO4dDFoUUdkrm5QD4x8ocdbpgpVzGgVVVouWlL24iKvO!-1057879407SYNOPSIS my $sms = Net::SMS::O2->new( autotruncate => 1, username => 'yourname', password => 'yourpassword', recipient => 07713123456, subject => 'a test', message => 'a test message', ); $sms->verbose( 1 ); $sms->message( 'a different message' ); print "sending message to mobile number ", $sms->recipient(); $sms->send_sms(); Requirements: · Perl


Net::SMS::O2 Related Software