WWW::SMS::o2UK(3)
π 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
- arch rolling: perl-www-sms 0.09-19 Β· GPL AND PerlArtistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms