Skip to content

Tarantool module for sending messages to Mail.Ru Agent

License

Notifications You must be signed in to change notification settings

agent-0007/mrasender

Repository files navigation

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  = '[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);

See Also

About

Tarantool module for sending messages to Mail.Ru Agent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published