SendSMS

Sends SMS message using SmsApi.pl service. Userlogin and password for the service must be set in AMODIT system settings. Message can be normalized to remove special Polish chars which results in longer messages.

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")
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.