Describe the bug
When self-hosting Papercups with docker compose, the SMTP mailer is broken.
To Reproduce
Steps to reproduce the behavior:
Open iex
import Swoosh.Email
Try to send an email like new() |> from("noreply@support.example.com") |> to("myself@example.com") |> subject("Hi there") |> text_body("Testing SMTP integration") |> ChatApi.Mailers.deliver(). You will see the following error:
Describe the bug When self-hosting Papercups with docker compose, the SMTP mailer is broken.
To Reproduce Steps to reproduce the behavior:
import Swoosh.Email
new() |> from("noreply@support.example.com") |> to("myself@example.com") |> subject("Hi there") |> text_body("Testing SMTP integration") |> ChatApi.Mailers.deliver()
. You will see the following error:Expected behavior Sending the email works.
Additional context I believe this is caused by this bug: https://github.com/gen-smtp/gen_smtp/issues/250
If that's the case, using a more recent version of Elixir/OTP in the Docker image would fix it, as would updating gen_smtp.