Skip to content

Another SMTP adapter for Bamboo

Notifications You must be signed in to change notification settings

ruslandoga/bamboo_mua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bamboo.Mua

Hex Package Hex Docs

Bamboo adapter for Mua.

Installation

defp deps do
  [
    {:bamboo_mua, "~> 0.2.0"},
    {:castore, "~> 1.0"}
  ]
end

Usage

# for supported configuration, please see https://hexdocs.pm/bamboo_mua/Bamboo.Mua.html#t:option/0
Application.put_env(:example, Mailer, adapter: Bamboo.Mua)

defmodule Mailer do
  use Bamboo.Mailer, otp_app: :example
end

email =
  Bamboo.Email.new_email(
    from: {"Mua", "mua@github.com"},
    to: {"Receiver", "receiver@mailpit.example"},
    subject: "how are you?",
    text_body: "I'm fine",
    html_body: "I'm <i>fine</i>"
  )

Mailer.deliver_now(email)

About

Another SMTP adapter for Bamboo

Resources

Stars

Watchers

Forks

Languages