Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: reset password email title #378

Merged
merged 1 commit into from
Feb 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/safira/email.ex
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading