Skip to content

andrewtimberlake/mailroom

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Mailroom

Send, receive and process emails.

Example:

alias Mailroom.POP3

{:ok, client} = POP3.connect(server, username, password, port: port, ssl: true)
client
|> POP3.list
|> Enum.each(fn(mail) ->
  {:ok, message} = POP3.retrieve(client, mail)
  # process message
  :ok = POP3.delete(client, mail)
end)
:ok = POP3.reset(client)
:ok = POP3.close(client)

Installation

If available in Hex, the package can be installed as:

  1. Add mailroom to your list of dependencies in mix.exs:

    def deps do
      [{:mailroom, "~> 0.4.0"}]
    end
  2. Ensure mailroom is started before your application:

    def application do
      [applications: [:mailroom]]
    end

About

Mail handling for Elixir

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages