From d6eacf16f6ffa59e6176d227e4fec0823f84e410 Mon Sep 17 00:00:00 2001 From: Kalys Osmonov Date: Wed, 21 Jun 2023 22:40:35 +0200 Subject: [PATCH] Fix bug related to local part being puny code encoded --- lib/bamboo/adapters/message/encoding.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, [])