2014-02-24 00:01:37 -06:00
|
|
|
require_dependency 'email/message_builder'
|
|
|
|
|
|
|
|
class RejectionMailer < ActionMailer::Base
|
|
|
|
include Email::BuildEmailHelper
|
|
|
|
|
2014-06-27 14:03:07 -05:00
|
|
|
def send_rejection(from, body, to_address, template)
|
|
|
|
build_email(from, template: "system_messages.#{template}", source: body, destination: to_address)
|
2014-02-24 00:01:37 -06:00
|
|
|
end
|
2014-02-28 06:05:09 -06:00
|
|
|
|
2014-06-23 19:16:56 -05:00
|
|
|
def send_trust_level(from, template)
|
2014-06-22 17:04:24 -05:00
|
|
|
build_email(from, template: 'email_reject_trust_level')
|
2014-02-28 06:05:09 -06:00
|
|
|
end
|
2014-02-24 00:01:37 -06:00
|
|
|
end
|