diff --git a/lib/bamboo/adapters/message/encoding.ex b/lib/bamboo/adapters/message/encoding.ex index 284f421..5edd35b 100644 --- a/lib/bamboo/adapters/message/encoding.ex +++ b/lib/bamboo/adapters/message/encoding.ex @@ -54,7 +54,7 @@ defmodule BambooSes.Encoding do defp encode_address(address) do [local_part, domain_part] = String.split(address, "@") - Enum.join([:idna.utf8_to_ascii(local_part), :idna.utf8_to_ascii(domain_part)], "@") + Enum.join([local_part, :idna.utf8_to_ascii(domain_part)], "@") end defp rfc1342_encode(string) when is_binary(string), do: rfc1342_encode(string, [])