mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 11:32:24 -05:00
024597e643
- Replace implicit return code-system in Email::Receiver with proper exception system - Update tests to check for exceptions instead - Test the PollMailbox for expected failures - Add proper email-handling of problematic emails "
13 lines
364 B
Ruby
13 lines
364 B
Ruby
require_dependency 'email/message_builder'
|
|
|
|
class RejectionMailer < ActionMailer::Base
|
|
include Email::BuildEmailHelper
|
|
|
|
def send_rejection(from, body)
|
|
build_email(from, template: 'email_reject_notification', from: from, body: body)
|
|
end
|
|
|
|
def send_trust_level(from, body, to)
|
|
build_email(from, template: 'email_reject_trust_level', to: to)
|
|
end
|
|
end
|