The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

SMS::Send::CZ::Bulkgate - SMS::Send driver for Bulkgate - Czech Republic

VERSION

version 2.003

SYNOPSIS

use SMS::Send;

# see https://help.bulkgate.com/docs/cs/http-simple-transactional.html
my $sender = SMS::Send->new('CZ::Bulkgate',
	_login    => '1111:gOwn:420111222333',
	_password => 'secret',
	);

my $sent = $sender->send_sms(
	text => 'Test SMS',
	to   => '604111111',
	);

# Did it send?
if ( $sent ) {
	print "Sent test message\n";
} else {
	print "Test message failed\n";
}

METHODS

log

Logs message to /var/log/bulkgate.log if this file is accessible and writable

send_sms

Sends the message using BulkGate Simple API at https://portal.bulkgate.com/api/1.0/simple/transactional and takes additional arguments: 'text' containing the message itself and 'to' providing recipient's number.

Processing information is automatically logged to /var/log/bulkgate.log to allow tracking of possible problems.

Returns true if the msssage was successfully sent

Returns false if an error occured

AUTHOR

Radek Šiman <rbit@rbit.cz>

COPYRIGHT AND LICENSE

This software is copyright (c) 2022 by R-Bit Technology, s.r.o.

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