API Documentation (Beta)

sms

Description

int sendSMS ( string $destination , string $message [, string $from] )

sms sends the message to destination.

Parameters

destination

The string that specifies the destination phone number. Phone number should be of the following format: (country code)(phone number) e.g. To send message to a San Diego, USA number, it should look like 18585551212.

message

The message that needs to be sent.

from

This specifies the number from where message is shown to be originated from (i.e. caller-id). By default, the callerId of the user, if available, is passed to the destination.

Return Values

If successful, it returns SUCCESS.
On failure, it will return one of the following strings:

  • - INVALIDDESTINATION: Specified destination is invalid.
  • - FAIL: Message could not be sent.