Home

Awesome

gen_smtpc

gen_smtpc - is very simple smtp client for erlang.

Usage

Add gen_smtpc to your rebar.config:

%% Dependencies
{deps, [
   {gen_smtpc, "*", {git, "git://github.com/0xAX/gen_smtpc.git", "master"}}
   ]
}.

And send mail from your erlang application:

application:start(gen_smtpc),
Options = [{use_ssl, true}, {host, "smtp.gmail.com"}, {port, 465}]),
gen_smtpc:send({"usermail@gmail.com", "password"}, "user2@gmail.com", "Subject", "Mail body", Options).

Contribute

Author

@0xAX

License

Apache License Version 2.0.