mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 07:13:38 +08:00
16 lines
437 B
Ruby
16 lines
437 B
Ruby
# 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,
|
|
admin_confirm_url: confirm_admin_url(token: token, host: Discourse.base_url)
|
|
)
|
|
end
|
|
end
|