sendSMS() public method

send a SMS
public sendSMS ( string $content, string $phoneNumber, string $from ) : boolean
$content string
$phoneNumber string
$from string
return boolean true
 /**
  * @param array  $alerts
  * @param APIMobileMessaging $mobileMessagingAPI
  * @param string $phoneNumber
  */
 protected function sendAlertsPerSmsToRecipient($alerts, $mobileMessagingAPI, $phoneNumber)
 {
     if (empty($phoneNumber) || empty($alerts)) {
         return;
     }
     if (!PluginManager::getInstance()->isPluginActivated('MobileMessaging')) {
         return;
     }
     $controller = new Controller();
     $content = $controller->formatAlerts($alerts, 'sms');
     $subject = Piwik::translate('CustomAlerts_SmsAlertFromName');
     $mobileMessagingAPI->sendSMS($content, $phoneNumber, $subject);
 }