discourse/app/mailers/admin_confirmation_mailer.rb

15 lines
389 B
Ruby
Raw Normal View History

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