SMS::Send::AT::TMobile - SMS::Send driver for the T-Mobile Austria SMSC service
version 0.002
use SMS::Send; my $sender = SMS::Send->new('AT::TMobile', _login => 'foo', _password => 'bar', ); my $sent = $sender->send_sms( '_from' => '43676123456789' || 'CUSTOMTEXT', 'to' => '43676012345678', 'text' => 'This is a test message', ); # Did the send succeed. if ( $sent ) { print "Message sent ok\n"; } else { print 'Failed to send message: ', $@->{as_string}, "\n"; }
Is called by "send_sms" in SMS::Send and takes the additional argument '_from' which defines the sender phone number or text.
Returns true if the message was successfully sent.
Returns false if an error occurred and $@ is set to a hashref of the following info:
{ as_string => '', # HTTP POST response as a string }
Throws an exception if a fatal error like a http timeout in the underlying connection occurred.
Alexander Hartmaier <abraxxa@cpan.org>
This software is copyright (c) 2015 by Alexander Hartmaier.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install SMS::Send::AT::TMobile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SMS::Send::AT::TMobile
CPAN shell
perl -MCPAN -e shell install SMS::Send::AT::TMobile
For more information on module installation, please visit the detailed CPAN module installation guide.