mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
13 lines
408 B
Ruby
13 lines
408 B
Ruby
require_dependency 'email/message_builder'
|
|
|
|
class RejectionMailer < ActionMailer::Base
|
|
include Email::BuildEmailHelper
|
|
|
|
def send_rejection(from, body, error)
|
|
build_email(from, template: 'email_error_notification', error: "#{error.message}\n\n#{error.backtrace.join("\n")}", source: body)
|
|
end
|
|
|
|
def send_trust_level(from, body)
|
|
build_email(from, template: 'email_reject_trust_level')
|
|
end
|
|
end
|