Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics

PHPrunner32x32     ASPRunnerPro manual


Function runner_sms

Scroll Prev Next More

Description

Sends a text message to a specified phone number.

Syntax

runner_mail(params)

Arguments

number

a phone number.

message

a text message.

Return value

An array with the following keys:

 

success: (true or false) indicates whether the sms was sent or not.

error: an error message in case the sms was not sent.

Example

Send an sms to a phone number. This function works only if you have set up the Two-factor authentication.

 

runner_sms("+12345678901", "You verification code", CreateDictionary())

See also:

Two-factor authentication

SMS settings

Multiple SMS providers

runner_mail function