Send Bulk SMS using PERL

Send Bulk SMS using PERL

Send SMS API using PERL

This is just an example SMS API code for PERL programming language, please make sure to sanitize data and other security aspects at the time of actual development.

Send Bulk SMS using PERL

Sample scripts are provided just for reference only, do not develop using the same code.

Download Text File

    #!/usr/bin/perl
     
    use strict;
    use LWP::UserAgent;
    use HTTP::Request::Common;
     
    my $username = '';
    my $password = '********';
    my $sendername = "SMSSMS";
    my $mobile = "9xxxxxxxxxx";
    my $message = "Hello World!";
    my $type = "Individual";#Individual/Bulk
    my $language = "English";
    my $sendsms = LWP::UserAgent->new();
     
    my $result = $sendsms->request
    (
     POST 'https://www.smsgatewaycenter.com/library/send_sms_2.php?',
     Content_Type  => 'application/x-www-form-urlencoded',
     Content       => [
                'UserName'    => $username,
                'Password'    => $password,
                'To'        => $mobile,
                'Type'        => $type,
                'Mask'        => $sendername,
                'Language'    => $language,
                'Message'    => $message
                      ]
    );
     
    if ($result->is_error){        die "HTTP Error\n";
    }
    print "Response:\n\n" . $result->content . "\n\n";

Go Back! SMS Developers API

Save this interesting page on your Favorite Social Media

Premium Bulk SMS Gateway

SMS Pricing

Receive a Call

Services

SMS Business Opportunities

Bulk SMS Know-how


Convinced? Get an estimate. Contact Now!