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