public
Description: Erlang SMTP library
Homepage:
Clone URL: git://github.com/archaelus/esmtp.git
esmtp /
name age message
file .gitignore Mon Oct 20 16:01:04 -0700 2008 Adding a git ignore file. [archaelus]
file Emakefile Mon Oct 20 15:36:18 -0700 2008 Basic make infrastructure [archaelus]
file Makefile Wed Apr 01 19:17:58 -0700 2009 Fixing doc generation make target. [archaelus]
file README.rst Tue Apr 28 17:40:57 -0700 2009 Updating readme to give example SSL (gmail) con... [archaelus]
directory include/ Mon Oct 20 15:37:56 -0700 2008 Adding basic logging functions. [archaelus]
directory priv/ Mon Oct 20 15:46:36 -0700 2008 Sample config file. [archaelus]
directory src/ Wed Aug 12 08:44:16 -0700 2009 added start/0 so we can start the application w... [benbro]
README.rst

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>"}]}].