SMTP backend for lager
Erlang
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
LICENSE.txt
Makefile
README.md
rebar
rebar.config

README.md

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},
	{to, [<<"to@example.com">>]},
	{relay, <<"smtp.example.com">>},
	{username, <<"from@example.com">>},
	{password, <<"secret_password">>},
	{port, 587},
	{ssl, true},
	{flush_interval, 20000}
]}

Note that to is a list of recipients, that is mandatory. Optional arguments are only level, port and ssl, example shows defaults.