Skip to content

mailru/mrasender

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
rpm
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Tarantool module for sending messages to Mail.Ru Agent

Resources

License

Stars

Watchers

Forks

Packages

No packages published