From 69d508d2527753294d76a7ef9effde6cbf9af147 Mon Sep 17 00:00:00 2001 From: shibao Date: Sun, 27 Nov 2022 12:03:51 -0500 Subject: [PATCH] fix bug with email --- lib/memex/accounts/email.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/memex/accounts/email.ex b/lib/memex/accounts/email.ex index 791693d..3bd4cdd 100644 --- a/lib/memex/accounts/email.ex +++ b/lib/memex/accounts/email.ex @@ -19,8 +19,8 @@ defmodule Memex.Email do @spec base_email(User.t(), String.t()) :: t() defp base_email(%User{email: email}, subject) do - from = Application.get_env(:Memex, Memex.Mailer)[:email_from] || "noreply@localhost" - name = Application.get_env(:Memex, Memex.Mailer)[:email_name] + from = Application.get_env(:memex, Memex.Mailer)[:email_from] || "noreply@localhost" + name = Application.get_env(:memex, Memex.Mailer)[:email_name] new() |> to(email) |> from({name, from}) |> subject(subject) end