Skip to content
Tarantool module for sending messages to Mail.Ru Agent
C CMake Lua
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
debian
mrasender
rpm
.gitignore
.travis.yml
AUTHORS
CMakeLists.txt
FindTarantool.cmake
LICENSE
README.md
mrasender-scm-1.rockspec

README.md

mrasender - Tarantool module for sending messages to Mail.Ru Agent

Warning: recipient must be in your contactlist!

Prerequisites

  • Tarantool 1.6.5+ with header files (tarantool && tarantool-dev packages)

Installation HowTo

git clone https://github.com/agent-0007/mrasender
cd mrasender
cmake .
make
make install
  • Copy paste LUA script below, save it to file mrasender_test.lua
#!/usr/bin/env tarantool

box.cfg{
  log_level = 5
}

local agent = require('mrasender')
local log   = require('log')

local username  = 'USERNAME@mail.ru'
local password  = 'PASSWORD'
local recipient = 'RECIPIENT@mail.ru'
local msg       = 'Test message from tarantool'

-- send message to recipient from username
local res = agent.send_message_to_mra(username, password, recipient, msg)

log.info("Send message to:"..recipient..", result:"..res);

See Also

You can’t perform that action at this time.