Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Very basic implementation of SMS.ru API for Drupal with Rules integration.

For now only implemented method is - send/sms. If you need another, you can make it by yourself ;)


  • Download, extract and place it as all modules. Better to place this module to /sites/all/modules/custom.
  • Navigate to modules page and enable it.
  • Go to settings (admin/config/services/smsru) and set API key.


Attention! All numbers must be in worldwide format, without leading + and regional number. F.e. correct number for Russia is starts from +7 or 7, not 8 +8.

// @TODO helper function for supported countries (https://sms.ru/?panel=price&machine=1)

If you familiar with coding, you can use my regex for Russian numbers.

^\+?\s?7\s?\(?-?(?# code)[0-9]{3}(?# next 3 digit)\s?\)?-?\s?[0-9]{3}\s?-?(?# next 2 digits)[0-9]{2}\s?-?(?# the last 2 digits)[0-9]{2}


  1. Create any condition you want.
  2. All available SMS.ru actions will be in SMS.RU group.
  3. Fill required fields and save it.
  4. Enjoy.


smsru_class()->send_sms('79001234567', 'Hello World');
smsru_2.png15.87 KB

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Module categories: Developer, Utility