From 8981033491ab2fe54638b516ea3de738edefb33d Mon Sep 17 00:00:00 2001 From: Dejan Strbac Date: Sun, 21 Feb 2016 23:11:37 +0100 Subject: [PATCH] add missing envelope format --- lib/mailex.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mailex.ex b/lib/mailex.ex index 1674204..fc4f2c7 100644 --- a/lib/mailex.ex +++ b/lib/mailex.ex @@ -15,7 +15,7 @@ defmodule Mailex do message = email |> Mailex.Render.render 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 envelope = { envelope_from, envelope_to, message }