class UserMailer < ApplicationMailer default from: -> { MatchLiveTv.mail_from } def password_reset(user, token) @user = user @reset_url = public_password_reset_url(token: token) @expiry_hours = MatchLiveTv.password_reset_expiry_hours I18n.with_locale(I18n.locale) do mail to: user.email, subject: t("mailers.password_reset.subject") end end end