File: testMail.lua

package info (click to toggle)
lua-logging 1.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 512 kB
  • sloc: makefile: 16; sh: 3
file content (16 lines) | stat: -rw-r--r-- 302 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
local log_email = require"logging.email"

local logger = log_email {
  rcpt = "mail@host.com",
  from = "mail@host.com",
  {
    subject = "[%level] logging.email test",
  }, -- headers
}

logger:info("logging.email test")
logger:debug("debugging...")
logger:error("error!")

print("Mail Logging OK")