app/mailers/annotator_welcome_mailer.rb
class AnnotatorWelcomeMailer < ApplicationMailer
def with_password(annotator)
@annotator = annotator
mail to: @annotator.email,
subject: t('mailers.annotator-welcome.with-password.subject',
annotator: @annotator.name)
end
def without_password(annotator, reset_password_token)
@annotator = annotator
@reset_password_token = reset_password_token
mail to: @annotator.email,
subject: t('mailers.annotator-welcome.without-password.subject',
annotator: @annotator.name)
end
end