Routomessaging logo
Great Britain +44(0) 870 231 7777
RoutoMessaging login button   Chat with RoutoMessaging Chat    Contact Us
 
 
Trust and confidence sms



Learn how to buy

Sales experts Chat Now


Sending SMS basics using Perl class

RoutoMessaging provides you with sms gateway integration tools as ready-made scripts available to help you managing connection to our SMS gateway over your chosen programming language. These scripts as developer solution all work with the HTTP application. Join us now and get 10 SMS to test our SMS Gateway service.

Use the Perl Language code sample bellow to send sms trough RoutoMessaging SMS Gateway. Register for an HTTP API account and you will immediately receive 10 test messages to try our service.

Send SMS with Perl Language:
#!/usr/bin/perl
use strict;
use LWP::UserAgent;
my $username = "your_username";
my $password = "your_password";
my $number = "123456789";
my $ua = LWP::UserAgent->new;
$ua->timeout(10);
my $response = $ua->post(
"http://smsc5.routotelecom.com/cgi-bin/SMSsend",
{
number => $number,
user => $username,
pass => $password,
message => "Test message"
});
if ($response->is_success) {
print $response->decoded_content; }
else {
die $response->status_line; }


get test account
© 2010 Routo Telecommunications Ltd.
RoutoMessaging ® 2010.