Popularity
8.0
Stable
Activity
0.0
Stable
200
3
73

Monthly Downloads: 378
Programming language: Elixir
License: MIT License
Tags: Email    

mailman alternatives and similar packages

Based on the "Email" category.
Alternatively, view mailman alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of mailman or a related project?

Add another 'Email' Package

README

Mailman 👮

Elixir CI Docs Hex.pm Version

Mailman lets you send email from your Elixir app.

  • Plain text or multi-part email (plain text and HTML)
  • Inline images in HTML part
  • Attachments (with semi-automatic MIME type detection)
  • Easy-peasy SMTP config
  • Rendering via EEx
  • Standard quoted-printable encoding
  • Automatic CC and BCC delivery
  • Custom headers
  • SMTP delivery timestamps

Mailman is a wrapper around the mighty (but rather low-level) gen_smtp, the popular Erlang SMTP library.

Simple example

context = %Mailman.Context{
  config: %Mailman.SmtpConfig{
      relay: "yourtdomain.com",
      username: "userkey-here",
      password: "passkey-here",
      port: 25,
      tls: :always,
      auth: :always,
  },
  composer: %Mailman.EexComposeConfig{}
}

email = %Mailman.Email{
  subject: "Hello Mailman!",
  from: "[email protected]",
  to: ["[email protected]"],
  cc: ["[email protected]", "[email protected]"],
  bcc: ["[email protected]"],
  data: [
    name: "Yo"
  ],
  text: "Hello! <%= name %> These are Unicode: qżźół",
  html: """
<html>
<body>
 <b>Hello! <%= name %></b> These are Unicode: qżźół
</body>
</html>
"""
}

Mailman.deliver(email, context)