Moritz Onken > Net-SMS-Massenversand-0.03 > Net::SMS::Massenversand

Download:
Net-SMS-Massenversand-0.03.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Net::SMS::Massenversand - Send SMS via Massenversand.de

VERSION ^

Version 0.03

SYNOPSIS ^

    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;

METHODS ^

new

Create a new object.

user

Sets the user id of your Massenversand.de account

password

Sets the password of your Massenversand.de account

limit

This method returns the credit which is left at your account.

Sets "error" in case of an error.

send

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:

id

Defaults to $sms->user

pw

Defaults to $sms->password

receiver

Set the phone number of the receiver (international format starting with "00")

sender

11 alphanumerical or 16 numerical characters allowed. Allowed characters: a-z, A-Z and 0-9

message

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

t: text SMS
f: flash SMS
b: blink SMS
c: longer-than-160-character SMS

Defaults to 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.

TODO ^

Add support for all the sms types like flash sms.
MMS support

AUTHOR ^

Manuel Laux, <laux at netcubed.de>,

Moritz Onken, <onken at netcubed.de>

BUGS ^

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.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Net::SMS::Massenversand

You can also look for information at:

COPYRIGHT & LICENSE ^

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.

syntax highlighting: