GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SMS::SEND::DEVICEGSM (3)

.ds Aq ’

NAME

SMS::Send::DeviceGsm - An SMS::Send driver for Device::Gsm.

CONTENTS

SYNOPSIS



  my $sender = SMS::Send->new(DeviceGsm,
        _baudrate => 19200,
        _port     => /dev/ttyS1,
        );
 
  # Send a message to ourself
  my $sent = $sender->send_sms(
        text => Messages have a limit of 160 chars,
        to   => +61 4 444 444,
        );
 
  # Did it send?
  if ( $sent ) {
        print "Sent test message\n";
  }
  else {
        print "Test message failed\n";
  }



DESCRIPTION

SMS::Send::DeviceGsm is an SMS::Send driver that uses Device::Gsm to deliver messages via attached hardware.

You provide the hardware port and the baudrate to use. Consult Device::Gsm for further information on what devices and baudrates are supported.

    Disclaimer

The authors of this driver take no responsibility for any costs accrued on your phone bill by using this module.

Using this driver will cost you money. <B>YOU HAVE BEEN WARNEDB>

METHODS

CWnew



  # Create a new sender using this driver
  my $sender = SMS::Send->new( DeviceGsm,
        _baudrate => 19200,
        _port     => /dev/ttyS1,
        );



The new constructor takes two parameters, which should be passed through from the SMS::Send constructor.

The params are driver-specific for now, until SMS::Send adds a standard set of params for specifying the login and password.
_baudrate The _baudrate param defaults to ’19200’.
_port The _port param is the serial port to connect to. On Unix, can be also a convenient link as /dev/modem (the default value). For Win32, COM1,2,3,4 can be used.
Returns a new SMS::Send::DeviceGsm object, or dies on error.

CWsend_sms



  # Send a message to a particular address
  my $result = $sender->send_sms(
        text => This is a test message,
        to   => +61 4 1234 5678,
        );



The send_sms method sends a standard text SMS message to a destination phone number.

SUPPORT

Bugs should be reported via the CPAN bug tracker at

<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SMS-Send-DeviceGsm>

For other issues, contact the author.

AUTHOR

Chris Williams <chris@bingosnet.co.uk<gt>

LICENSE

Copyright X Chris Williams

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Additionally, you are again reminded that this software comes with no warranty of any kind, including but not limited to the implied warranty of merchantability.

ANY use may result in charges on your phone bill, and you should use this software with care. The author takes no responsibility for any such charges accrued.

SEE ALSO

SMS::Send

Device::Gsm

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 SMS::SEND::DEVICEGSM (3) 2009-04-23

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.