WWW::SMS::o2UK(3)

πŸ“¦ version 0.09, in arch rolling

πŸ’– WWW::SMS::o2UK β€” the manual, bestie πŸ’–

Okay so this is the WWW::SMS::o2UK(3) page from User Contributed Perl Documentation, and it’s giving β€œlet’s get you set up” energy. We are keeping every single step, no skipping, no cap. 🫢

πŸ’Ύ Install

Bestie, perl modules can be found at http://search.cpan.org/ β€” that’s the link, periodt. ✨

πŸ” openssl

Get the latest openssl from http://www.openssl.org.

linux:/usr/src # tar -zxvf openssl-0.9.6g.tar.gz

$ ./config
$ make
$ make test
$ make install

πŸ›‘οΈ NET::SSL

Get latest Net::Ssl from http://search.cpan.org/author/CHAMAS/.

linux:/usr/src # tar -zxvf Crypt-SSLeay-0.45.tar.gz
  > perl Makefile.PL
  > make
  > make test
  > make install

And test it :-) πŸ’…

# lwp-request https://www.nodeworks.com

Then this little Perl vibe check:

use LWP::UserAgent;
my $ua = new LWP::UserAgent;
my $req = new HTTP::Request('GET', 'https://www.nodeworks.com');
my $res = $ua->request($req);
print $res->code."\n";

res code should be 200 in case of success. Slay. 🌟

πŸ“² WWW::SMS

Get latest Www::Sms from http://search.cpan.org/author/GIULIENK/.

Update SMS.pm with the new provider if wanted. Copy o2UK.pm into your /WWW/SMS/ perl library directory, e.g. into:

linux:/usr/lib/perl5/site_perl/5.6.1/WWW/SMS>

You have to sign up with O2 http://www.o2.co.uk/ (previous genie) β€” which is free at the moment, and you can send 100 sms/month free. πŸŽ€

You have to pass the username/password or the file which contains it. Dunno all the sim cards provided yet: o2 and vodafone work.

And test it :-) πŸ’–

use WWW::SMS;
#international prefix, operator prefix, phone number, message text
my $sms = WWW::SMS->new('44', '7777', '123456', 'This is a test.','username' => 'your_o2_username', 'password' => 'your_o2_password');
for ( $sms->gateways() ) {
    print "Trying $_...\n";
    if ( $sms->send($_) ) {               # try to send a sms...
        last;                             # until it succeds ;)
    } else {
        print $WWW::SMS::Error;           # unlucky!
    }
}

That’s the whole page, bestie β€” cute little sign-off: perl v5.42.0, dated 2025-12-14. πŸ’–βœ¨

πŸ“¦ where this page comes from