mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 14:25:24 +08:00
15 lines
412 B
Ruby
15 lines
412 B
Ruby
|
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,
|
||
|
admin_confirm_url: confirm_admin_url(token: token, host: Discourse.base_url_no_prefix)
|
||
|
)
|
||
|
end
|
||
|
end
|