chrismccord / mailgun

Elixir Mailgun Client
MIT License
194 stars 95 forks source link

Attachment + unicode char in subject/body = hangs with no response #51

Open alexfilatov opened 7 years ago

alexfilatov commented 7 years ago

When we have attachment and ascii symbols in subject/body - everything is fine.

When we have something like this:

send_email(
        to: "some@emailaddress.com", 
        from: "some@emailaddress.com",
        subject: "Тестовое письмо",
        html: "Test body",
        attachments: [%{path: "mix.exs", filename: "mix.exs"}]
)

we get mailgun hangs with no response at all.

I added :httpc.set_options([{:verbose, :debug}]) to the client.ex right before calling :httpc.request and attached debug output for you. Hope @chrismccord will find some time to fix it. Thank you!

elixir 1.3.4

httpc_debug.txt

AmenZhou commented 7 years ago

I experienced the same problem.