1
0
forked from migadu/mailex

add missing envelope format

This commit is contained in:
Dejan Strbac 2016-02-21 23:11:37 +01:00
parent fe8e2dfbe9
commit 8981033491

View File

@ -15,7 +15,7 @@ defmodule Mailex do
message = email |> Mailex.Render.render message = email |> Mailex.Render.render
envelope_from = email.from |> Mailex.Address.envelope_format envelope_from = email.from |> Mailex.Address.envelope_format
envelope_to = email.to ++ (email.cc || []) ++ (email.bcc || []) envelope_to = (email.to ++ (email.cc || []) ++ (email.bcc || [])) |> Mailex.Address.envelope_format
if Keyword.get(config, :relay) do if Keyword.get(config, :relay) do
envelope = { envelope_from, envelope_to, message } envelope = { envelope_from, envelope_to, message }