You are here

function sms_txtlocal_send in SMS Framework 6

Callback for sending messages.

Options for this send function: see also sms_txtlocal_command()

  • sender - The sender of the message. MSISDN or text string. Min=3, max=11 chars.
  • reference - Message reference tag (to appear on any receipt).
  • delaymins - Minutes to delay message send.
  • url - Full URL for a WAP PUSH message.

Parameters

$number: MSISDN of message recipient. Expected to include the country code prefix.

$message: Message body text.

$options: Options array from SMS Framework.

Return value

Response from sms_txtlocal_command()

1 string reference to 'sms_txtlocal_send'
sms_txtlocal_gateway_info in modules/sms_txtlocal/sms_txtlocal.module
Implement hook_gateway_info()

File

modules/sms_txtlocal/sms_txtlocal.module, line 181
Txtlocal gateway module for Drupal SMS Framework. Outbound+Inbound

Code

function sms_txtlocal_send($number, $message, $options) {
  return sms_txtlocal_command('sendmsg', array(
    'number' => $number,
    'message' => $message,
    'options' => $options,
  ));
}