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