From 0e52399047120b9da357be689de51d2384ba088b Mon Sep 17 00:00:00 2001 From: Rui Lopes Date: Sat, 3 Feb 2024 18:45:52 +0000 Subject: [PATCH] refactor: reset password email title --- lib/safira/email.ex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/safira/email.ex b/lib/safira/email.ex index fd4e2755..6ae0d979 100644 --- a/lib/safira/email.ex +++ b/lib/safira/email.ex @@ -1,15 +1,16 @@ defmodule Safira.Email do @moduledoc """ - The emails used by safira + The emails used by Safira """ - # use Bamboo.Phoenix, view: Safira.FeedbackView import Bamboo.Email + @from_email Application.compile_env!(:safira, :from_email) + def send_reset_email(to_email, token) do new_email() |> to(to_email) |> from(@from_email) - |> subject("[SEI '23] Reset password instructions") + |> subject("[SEI '24] Reset password instructions") |> html_body(build_reset_password_email_text(token)) |> Safira.Mailer.deliver_now() end