discourse/app/mailers/admin_confirmation_mailer.rb

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

16 lines
438 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
class AdminConfirmationMailer < ActionMailer::Base
include Email::BuildEmailHelper
def send_email(to_address, target_email, target_username, token)
build_email(
to_address,
template: "admin_confirmation_mailer",
target_email: target_email,
target_username: target_username,
2017-10-27 16:46:02 -04:00
admin_confirm_url: confirm_admin_url(token: token, host: Discourse.base_url),
)
end
end