Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use strict;
- use warnings;
- use Net::SMS::WAY2SMS;
- my $sms = Net::SMS::WAY2SMS->new(
- 'user' => 'user_name' ,
- 'password' => 'secret_password',
- 'mob' => ['1234567890', '0987654321']
- );
- # multi line sms
- $sms->send(q[testing
- sending
- sms]);
- #end1
- #!C:/strawberry/perl/bin/perl.exe
- use strict;
- use warnings;
- use Net::SMS::160By2;
- my $username = "9823763544";
- my $password = "sssssss";
- my $msg = "Hi";
- my $to = "9922334455";
- my $obj = Net::SMS::160By2->new($username, $password);
- $obj->send_sms($msg, $to);
- #end2
- my $sendsms_uri = URI->new($SENDSMS_URL);
- $mech->get($sendsms_uri->as_string);`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement