notification.sms
This function can be used to send a notification through SMS.
WARNING
Due to the regulations of service providers in some countries, SMS services are disabled by default. To have the SMS system enabled, please contact a MODLR admin with the use case for SMS to have it reviewed.
js
notification.sms(user_id, content)
Parameters
user_id
- Unique Identifier of an user.content
- Content of the SMS.
Example
js
notification.sms(1, "Hello. This is a test SMS");
TIP
Please note that the recipient must have a phone number for this to be delivered. Users can update phone numbers from Manage Account page.