Return to Snippet

Revision: 28620
at July 10, 2010 13:49 by smsmatrix


Initial Code
use LWP::UserAgent;
use HTTP::Request::Common;

my $ua = LWP::UserAgent->new();
my $res = $ua->request
(
 POST 'http://www.smsmatrix.com/matrix',
 Content_Type  => 'application/x-www-form-urlencoded',
 Content       => [ 'username' => '[email protected]',
                    'password' => 'pass7782',
                    'callerid' => '12501231233', # optional (for 2-way sms)
                    'phone' => '12506063167',
                    'txt' => 'this is a test' ]
);

if ($res->is_error) { die "HTTP Error\n"; }
print "Matrix API Response: " . $res->content . "\n\n";

Initial URL
http://www.smsmatrix.com/?sms-gateway

Initial Description
send SMS to any mobile phone number (or a list) worldwide.

Initial Title
send SMS via SMS Gateway by www.smsmatrix.com

Initial Tags
perl

Initial Language
Perl