discourse/app/mailers/rejection_mailer.rb

14 lines
370 B
Ruby
Raw Normal View History

require_dependency 'email/message_builder'
class RejectionMailer < ActionMailer::Base
include Email::BuildEmailHelper
def send_rejection(from, body, template, error)
2014-06-24 08:51:22 +08:00
build_email(from, from: from, template: template, error: error, source: body)
end
def send_trust_level(from, template)
2014-06-23 06:04:24 +08:00
build_email(from, template: 'email_reject_trust_level')
end
end