2014-02-24 01:01:37 -05:00
|
|
|
require_dependency 'email/message_builder'
|
|
|
|
|
|
|
|
class RejectionMailer < ActionMailer::Base
|
|
|
|
include Email::BuildEmailHelper
|
|
|
|
|
2014-06-23 20:16:56 -04:00
|
|
|
def send_rejection(from, body, template, error)
|
2014-06-23 20:51:22 -04:00
|
|
|
build_email(from, from: from, template: template, error: error, source: body)
|
2014-02-24 01:01:37 -05:00
|
|
|
end
|
2014-02-28 07:05:09 -05:00
|
|
|
|
2014-06-23 20:16:56 -04:00
|
|
|
def send_trust_level(from, template)
|
2014-06-22 18:04:24 -04:00
|
|
|
build_email(from, template: 'email_reject_trust_level')
|
2014-02-28 07:05:09 -05:00
|
|
|
end
|
2014-02-24 01:01:37 -05:00
|
|
|
end
|