mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 19:53:53 -06:00
14 lines
370 B
Ruby
14 lines
370 B
Ruby
require_dependency 'email/message_builder'
|
|
|
|
class RejectionMailer < ActionMailer::Base
|
|
include Email::BuildEmailHelper
|
|
|
|
def send_rejection(from, body, template, error)
|
|
build_email(from, from: from, template: template, error: error, source: body)
|
|
end
|
|
|
|
def send_trust_level(from, template)
|
|
build_email(from, template: 'email_reject_trust_level')
|
|
end
|
|
end
|