debian-mirror-gitlab/lib/gitlab/background_migration/mailers/unconfirm_mailer.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
670 B
Ruby
Raw Normal View History

2020-07-28 23:09:34 +05:30
# frozen_string_literal: true
# rubocop:disable Style/Documentation
module Gitlab
module BackgroundMigration
module Mailers
class UnconfirmMailer < ::Notify
prepend_view_path(File.join(__dir__, 'views'))
def unconfirm_notification_email(user)
@user = user
@verification_from_mail = Gitlab.config.gitlab.email_from
2022-10-11 01:57:18 +05:30
mail_with_locale(
2020-07-28 23:09:34 +05:30
template_path: 'unconfirm_mailer',
template_name: 'unconfirm_notification_email',
2021-11-11 11:23:49 +05:30
to: @user.notification_email_or_default,
2020-07-28 23:09:34 +05:30
subject: subject('GitLab email verification request')
)
end
end
end
end
end