hex logo Hex
Packages Pricing Docs
Log In
Packages Pricing Docs Log In
Packages

mailer

1.3.0
1.3.0 1.2.0 1.1.0 1.0.1 1.0.0 1.0.0-rc2 1.0.0-rc1 0.5.1 0.5.0 0.0.1

Mailer - A simple email client

HexDocs

Current section

Files

Jump to
Readme
10 Versions
2 Dependencies
0 Dependants
Files
Activity
Readme 10 Versions 2 Dependencies 0 Dependants Files Activity
mailer lib support test_mail_handler.ex
Raw

19 files

  • lib
    • mailer
      • client_cfg.ex
      • email_multipart.ex
      • email_plain.ex
      • message_id.ex
      • renderer.ex
      • server_cfg.ex
      • smtp_client.ex
      • smtp_server.ex
      • template_locator.ex
      • util.ex
    • support
      • test_mail_handler.ex
      • test_transport.ex
    • mailer.ex
  • priv
    • templates
      • welcome
        • welcome.html
        • welcome.txt
  • LICENCE.txt
  • README.md
  • VERSION
  • mix.exs

Package files

  • lib/mailer.ex
  • lib/mailer/client_cfg.ex
  • lib/mailer/email_multipart.ex
  • lib/mailer/email_plain.ex
  • lib/mailer/message_id.ex
  • lib/mailer/renderer.ex
  • lib/mailer/server_cfg.ex
  • lib/mailer/smtp_client.ex
  • lib/mailer/smtp_server.ex
  • lib/mailer/template_locator.ex
  • lib/mailer/util.ex
  • lib/support/test_mail_handler.ex
  • lib/support/test_transport.ex
  • LICENCE.txt
  • mix.exs
  • priv/templates/welcome/welcome.html
  • priv/templates/welcome/welcome.txt
  • README.md
  • VERSION

lib/support/test_mail_handler.ex

defmodule Test.Mail.Handler do
def start() do
Agent.start(fn -> [] end, name: __MODULE__)
end
def clear do
Agent.update(__MODULE__, fn(_state) -> [] end)
end
def save(id, raw_mail) do
Agent.update(__MODULE__, fn(state) -> [{id, raw_mail} | state] end)
end
def get_mails do
Agent.get(__MODULE__, fn(state) -> state end)
end
end
hex logo Hex
About Blog Sponsors Status Advisories
Documentation FAQ Specifications Report Client Issue Report General Issue Report Security Issue Contact Support
Code of Conduct Terms of Service Privacy Policy Copyright Policy Dispute Policy

Copyright 2015. Six Colors AB.

Powered by the Erlang VM and the Elixir Programming Language

Search filters

Type any of these into the search box. They can be combined with free text which searches package names and descriptions.

Operator Description Example
name: Match package name. Supports * wildcards and repo/package form name:phx* or name:hexpm/phoenix
description: Full-text search of package descriptions description:auth
depends: Packages depending on a given package. Supports repo:package form depends:ecto or depends:hexpm:ecto
build_tool: Filter by build tool build_tool:mix
updated_after: Packages updated after an ISO8601 datetime updated_after:2025-01-01T00:00:00Z
extra: Match custom metadata (key,value). Nested keys are separated by commas extra:license,MIT

Wrap values in double quotes to include spaces, e.g. name:"my package".