class UserMailer inherit Rad::Mailer::MailerController def email_verification token @to = token.email @from = rad.users.email @subject = t :email_verification_title, host: rad.users.host # sent_on Time.now @body = t( :email_verification_text, host: rad.users.host, url: finish_email_registration_form_identities_path(host: rad.users.host, token: token.token) ) end def forgot_password token @to = token.user.email @from = rad.users.email @subject = t :forgot_password_title, name: token.user.name, host: rad.users.host # sent_on Time.now @body = t( :forgot_password_text, name: token.user.name, host: rad.users.host, url: reset_password_form_identities_path(host: rad.users.host, token: token.token) ) end end