2017-04-04 13:59:22 -04:00
|
|
|
require_dependency 'email/message_builder'
|
|
|
|
|
|
|
|
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-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
|