SMS::Send::US::TMobile - SMS::Send driver for the web.mms.msg.t-mobile.com website
This document describes SMS::Send::US::TMobile version 0.0.3
use SMS::Send; my $sender = SMS::Send->new('US::TMobile'); $sender->send_sms( '_from' => 'T. Tutone', # prepended to 'text' seperated by '/', I dunno; that what their site does :) 'to' => '7658675309', # ten digit, t-mobile number 'text' => "Jenny I got your number\nI need to make you mine\nJenny don't change your number", # 159 - '_from' chacters ) or _handle_sms_error( $@ );
Sends an SMS::Send message to TMobile US customers when used as the SMS::Send driver.
Uses 'to' and 'text' as per SMS::Send and additionally uses '_from' to prepend who its from to 'text'.
No extra agrgs, just SMS::Send->new('US::TMobile');
If send_sms() returns true then tmobile said it was sent.
If send_sms() returns false then $@ is set to a hashref of the following info:
{ 'args' => {}, # arguments to send_sms() 'caller' => [], # caller() info 'url' => '', # tmobile URL involved 'content' => '', # content POSTed to the url above 'is_success' => '', # was HTTP POST successful or not (1 or 0) 'as_string' => '', # HTTP POST response as a string }
'to' must contain ten digits
The value passed to 'to' does not have ten digits.
'_from' and 'text' combined must not be more than 159 characters
The length of characters in '_from' and 'text' put together are too long.
The limit is 160 but the two fields are seperated by a '/' which takes up one character so you have 159 to work with.
SMS::Send::US::TMobile requires no configuration files or environment variables.
LWP::UserAgent, URI::Escape, SMS::Send::Driver
None reported.
No bugs have been reported.
Please report any bugs or feature requests to bug-sms-send-us-tmobile@rt.cpan.org, or through the web interface at http://rt.cpan.org.
bug-sms-send-us-tmobile@rt.cpan.org
Daniel Muey <http://drmuey.com/cpan_contact.pl>
<http://drmuey.com/cpan_contact.pl>
Copyright (c) 2007, Daniel Muey <http://drmuey.com/cpan_contact.pl>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
To install SMS::Send::US::TMobile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SMS::Send::US::TMobile
CPAN shell
perl -MCPAN -e shell install SMS::Send::US::TMobile
For more information on module installation, please visit the detailed CPAN module installation guide.