ftos.messaging.sendSMS

IMPORTANT!  
Starting with v24.3.0, this is renamed from server.messaging.sendSMS to ftos.messaging.sendSMS.

Sends an SMS message.

This is suitable for business logic modules of business service components.

Syntax

Copy
function ftos.messaging.sendSMS(phoneNumber: string, message: string, {from: string, provider: "GatewaySmsOTP"|"FtosApiSms"}): void
 
Parameter Type Description
phoneNumber string Telephone number of the recipient.
IMPORTANT!  
The telephone number must include the country dialing code.
message string Contents of the SMS message.
from (optional) string String containing the sender information that will be included in the SMS message.
provier "GatewaySmsOTP"|"FtosApiSms"
  • "GatewaySmsOTP" - Sends the message to the message queue (EbsMetadata.FTOS_DPA_MessageQueue table).
  • "FtosApiSms" - Uses a preconfigured SMS service provider to send the message directly. For information on how to configure SMS service providers, see the Platform User Guide.

Examples