discourse/app/mailers/test_mailer.rb

10 lines
208 B
Ruby

require_dependency 'email/message_builder'
class TestMailer < ActionMailer::Base
include Email::BuildEmailHelper
def send_test(to_address)
build_email(to_address, template: 'test_mailer')
end
end