# mrasender **Repository Path**: mirrors_mailru/mrasender ## Basic Information - **Project Name**: mrasender - **Description**: Tarantool module for sending messages to Mail.Ru Agent - **Primary Language**: Unknown - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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 * 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 ```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); ``` * Replace USERNAME@mail.ru, PASSWORD, RECIPIENT@mail.ru whith your sending account and recipient account * chmod +x mrasender_test.lua * Run and enjoy: ./mrasender.lua ## See Also * [Tarantool][] * [Tarantool Rocks][TarantoolRocks] * [Tarantool/Lua API Reference][TarantoolLuaReference] * [Tarantool/C API Reference][TarantoolCReference] * [Lua/C API Reference][LuaCReference] [Tarantool]: http://github.com/tarantool/tarantool [Download]: http://tarantool.org/download.html [RockSpec]: https://github.com/keplerproject/luarocks/wiki/Rockspec-format [LuaCReference]: http://pgl.yoyo.org/luai/i/_ [TarantoolLuaReference]: http://tarantool.org/doc/reference/index.html [TarantoolCReference]: http://tarantool.org/doc/reference/capi.html [TarantoolRocks]: https://github.com/tarantool/rocks