Net::SMS::Massenversand - Send SMS via Massenversand.de
Version 0.03
use Net::SMS::Massenversand; my $sms = Net::SMS::Massenversand->new(); $sms->user('someuserid'); $sms->password('somepassword'); $sms->send( type => "sms", message => "Your SMS text", sender => 'Your Name', recipient => '00123456789' ); my $limit = $sms->limit;
Create a new object.
Sets the user id of your Massenversand.de account
Sets the password of your Massenversand.de account
This method returns the credit which is left at your account.
Sets "error" in case of an error.
Sends the actual message. It is called with a hash which includes the necessary information. This method expects a latin1 encoded string as message. Available parameters are:
Defaults to $sms->user
$sms->user
Defaults to $sms->password
$sms->password
Set the phone number of the receiver (international format starting with "00")
11 alphanumerical or 16 numerical characters allowed. Allowed characters: a-z, A-Z and 0-9
The actual message you want to send. Mind that the maximum length of a sms is 160. If you want to send more than 160 characters specify msgtype.
msgtype
Specify the type of your sms message. Avaiable types are
Defaults to c.
c
After sending a sms you can access the sms-id which has been set by Massenversand.de by calling $sms->id and the number of messages your message was split into $sms->msg_count.
There are three Massenversand.de servers specified. If one fails the next one is used. The timeout for a request is set to 15 seconds.
Returns 1 on success or 0 and sets "error" in case of an error.
Manuel Laux, <laux at netcubed.de>,
<laux at netcubed.de>
Moritz Onken, <onken at netcubed.de>
<onken at netcubed.de>
Please report any bugs or feature requests to bug-net-sms-massenversand at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-SMS-Massenversand. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-net-sms-massenversand at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Net::SMS::Massenversand
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-SMS-Massenversand
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Net-SMS-Massenversand
CPAN Ratings
http://cpanratings.perl.org/d/Net-SMS-Massenversand
Search CPAN
http://search.cpan.org/dist/Net-SMS-Massenversand
Copyright 2008 netCubed GbR, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::SMS::Massenversand, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::SMS::Massenversand
CPAN shell
perl -MCPAN -e shell install Net::SMS::Massenversand
For more information on module installation, please visit the detailed CPAN module installation guide.