tnt-dev / lager_smtp

SMTP backend for lager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

This is a SMTP backend for Lager. It allows you to send email messages out of lager via SMTP server.

Configuration

This backend is configured using proplist with contents similar to the following example:

{lager_smtp_backend, [
	{level, error},
    {from, <<"from@example.com">>},
	{to, [<<"to@example.com">>]},
	{relay, <<"smtp.example.com">>},
	{username, <<"from@example.com">>},
	{password, <<"secret_password">>},
	{port, 587},
	{ssl, true},
    {flush, true},
	{flush_interval, 20000}
]}

Note that to is a list of recipients, that is mandatory. Mandatory arguments are only from, to and relay, example shows defaults.

About

SMTP backend for lager

License:GNU General Public License v3.0


Languages

Language:Erlang 97.4%Language:Makefile 2.6%