• Stars
    star
    13
  • Rank 1,512,524 (Top 30 %)
  • Language
    Erlang
  • License
    GNU General Publi...
  • Created over 12 years ago
  • Updated almost 12 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

SMTP backend for lager

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, [<<"[email protected]">>]},
	{relay, <<"smtp.example.com">>},
	{username, <<"[email protected]">>},
	{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.