SendSMS
Sends SMS message using SmsApi.pl services.
CAUTION! It is required to purchase SMS services directly from SmsApi.pl. They are not a part of AMODIT licensing policy.
System settings for SmsApi
User login and password for the service must be set in AMODIT system settings.
Message can be normalized to remove special Polish characters which results in longer message text.
Syntax
SendSMS("Recipients","Message")
Function arguments
- Recipients – (String) Mobile phone numbers, with or without country number, user logins or emails, each separeted with ’;’ sign.
- Message – (String) Message to be sent. If 'Normalize’ parameter is enabled in AMODIT system settings, Polish special chars will be removed.
Return value
This function returns Boolean.
Returns true if message were scheduled to be sent successfully, false otherwise
Examples
Example 1:
This will send SMS message to AMODIT user with login 'testuserlogin’ to the number provided in user profile
SendSMS("testuserlogin", "message example")
Example 2:
This will send SMS message to AMODIT user with mail 'testuser@test.pl’ to the number provided in user profile
SendSMS("testuser@test.pl", "message example")
Example 3:
This will send SMS message to specified number
SendSMS("+ 12 345 567 789", "message example")
Example 4:
This will send SMS message to specified number
SendSMS("12 345 567 789", "message example")
Example 5:
This will send SMS message to specified number
SendSMS("345 567 789", "message example")
Example 6:
This will send 3 SMS messages to specified numbers
SendSMS("345567789;123456789;48123456999", "message example")
Example 7:
This will send 2 SMS messages : to specified number and to AMODIT user
SendSMS("345 567 789;testuserlogin", "message example")
Example 8:
This will send 2 SMS messages : both phone numbers will be extracted from AMODIT profiles
SendSMS("testuser@test.pl;testuserlogin", "message example")
See also: What to check when a text message/SMS does not come out from AMODIT