mrasender - Tarantool module for sending messages to Mail.Ru Agent
Warning: recipient must be in your contactlist!
- Tarantool 1.6.5+ with header files (tarantool && tarantool-dev packages)
- Install Tarantool && tarantool-dev packages (see http://tarantool.org/download.html)
- Install mrasender module for Tarantool
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 = '[email protected]'
local password = 'PASSWORD'
local recipient = '[email protected]'
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);
- Replace [email protected], PASSWORD, [email protected] whith your sending account and recipient account
- chmod +x mrasender_test.lua
- Run and enjoy: ./mrasender.lua