Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple wrapper around luasoket smtp.send
Lua CSS
tree: 6444da5730

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
cmake
docs
lua
rockspecs
CMakeLists.txt
LICENCE.txt
README.md
dist.info
sendmail.ldoc

README.md

lua-sendmail

Simple wrapper around luasoket smtp.send.
See documentation.

Usage

local sendmail = require "sendmail"
local from, to, server = 'from@some.mail', 'to@some.mail', '127.0.0.1'

sendmail(from, to, server, {"Subject", [[
  This is mail body.
]],
  file = {
    name = 'message.txt';
    data = 'file content';
  };
})

Dependences

Bitdeli Badge

Something went wrong with that request. Please try again.