function sms_email_gateway_send in SMS Framework 5
Same name and namespace in other branches
- 6 modules/sms_email_gateway/sms_email_gateway.module \sms_email_gateway_send()
Callback for sending messages.
1 string reference to 'sms_email_gateway_send'
- sms_email_gateway_gateway_info in modules/
sms_email_gateway/ sms_email_gateway.module
File
- modules/
sms_email_gateway/ sms_email_gateway.module, line 37
Code
function sms_email_gateway_send($number, $message, $options) {
$from = !empty($options['from']) ? $options['from'] : NULL;
$to = $number . '@' . $options['carrier'];
drupal_mail('sms_email_gateway', $to, '', $message, $from);
return array(
'status' => TRUE,
);
}