archaelus/esmtp

Erlang SMTP library

Erlang

75

49 commits

updated Dec 13, 2014

See the code

README

=======================================
esmtp - A simple SMTP client for Erlang
=======================================

esmtp is a simple OTP application providing a way to send emails (and
attachments) from erlang systems.

Configuration
=============

The esmtp application is configured with OTP application configuration
env variables.

smarthost
  This is a tuple giving the hostname and port of the smtp server to
  send mail via. This will usually be a local smtp server on port 25.
default_from
  This is the default From address to use on outgoing mail if a From
  address is not supplied.
login
  The SMTP AUTH credentials to use. Either 'no_login' when not using
  SMTP AUTH (default) or {Username::string(),Password::string()}.


Example
-------

system.config::

  [{esmtp, [{smarthost, {"localhost", 25}}
           ,{default_from, "Erlang/OTP <erlang@localhost>"}]}].

gmail.config::

  [{esmtp, [{smarthost, {"smtp.gmail.com", 465}}
           ,{login, {"youraddress@gmail.com","yourpassword"}}
           ,{default_from, "Erlang pretending to be <youraddress@gmail.com>"}]}].


Not written in Markdown, so it's shown here as plain text โ€” view it formatted on GitHub.

Contributors

archaelus

34 commits

borisfaure

8 commits

benoitc

4 commits

andreashasse

1 commits

archaelus/esmtp

Erlang SMTP library

Erlang

75

49 commits

updated Dec 13, 2014

See the code

README

=======================================
esmtp - A simple SMTP client for Erlang
=======================================

esmtp is a simple OTP application providing a way to send emails (and
attachments) from erlang systems.

Configuration
=============

The esmtp application is configured with OTP application configuration
env variables.

smarthost
  This is a tuple giving the hostname and port of the smtp server to
  send mail via. This will usually be a local smtp server on port 25.
default_from
  This is the default From address to use on outgoing mail if a From
  address is not supplied.
login
  The SMTP AUTH credentials to use. Either 'no_login' when not using
  SMTP AUTH (default) or {Username::string(),Password::string()}.


Example
-------

system.config::

  [{esmtp, [{smarthost, {"localhost", 25}}
           ,{default_from, "Erlang/OTP <erlang@localhost>"}]}].

gmail.config::

  [{esmtp, [{smarthost, {"smtp.gmail.com", 465}}
           ,{login, {"youraddress@gmail.com","yourpassword"}}
           ,{default_from, "Erlang pretending to be <youraddress@gmail.com>"}]}].


Not written in Markdown, so it's shown here as plain text โ€” view it formatted on GitHub.

Contributors

archaelus

34 commits

borisfaure

8 commits

benoitc

4 commits

andreashasse

1 commits

Languages

Erlang

100.0%