sendSMS

sendSMS

 

Syntax

sendSMS(senderName, phone, text)

Package

 

Alias

 

Pkg Usage

 

Description

Sends an SMS using the ENMS service or some other provider. See the Configuration manual for more details and supported providers. Returns 'false' if sending failed.

Parameters

Parameter name

Type

Required

Description

Parameter name

Type

Required

Description

senderName

String

Yes

The sender name can be either a sequence of maximum 11 characters or a phone number and must not contain spaces.

phone

String

Yes

MSISDN of the destination.

text

String

Yes

Text.

Return Type

Boolean

Returns 'true' if the message was sent successfully or 'false' if an error occurred.

Example

sendSMS("KEPLER","+40123456789","Hello world!");

 

See the Configuration manual for more details and supported providers. Returns 'false' if sending failed. More about the configuration can be found at SMS Sender Configuration section.

 

See also

Need support? Create a request with our support team.

Copyright © 2005 - 2026 Appfire | All rights reserved.