forked from potsda.mn/mobilizon
18 lines
408 B
Elixir
18 lines
408 B
Elixir
defmodule MobilizonWeb.Email do
|
|
@moduledoc """
|
|
The Email context.
|
|
"""
|
|
|
|
use Bamboo.Phoenix, view: MobilizonWeb.EmailView
|
|
|
|
alias Mobilizon.Config
|
|
|
|
@spec base_email :: Bamboo.Email.t()
|
|
def base_email do
|
|
new_email()
|
|
|> from(Config.instance_email_from())
|
|
|> put_html_layout({MobilizonWeb.EmailView, "email.html"})
|
|
|> put_text_layout({MobilizonWeb.EmailView, "email.text"})
|
|
end
|
|
end
|