diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-02-25 17:25:59 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-02-25 17:25:59 +1100 |
commit | 532a21ba4941197a13524ac3f1ce9267a46bec1d (patch) | |
tree | af99935a809b317d0f7f88c4492f99c7b1b9a910 /app/models/info_request.rb | |
parent | 506b848bc60cdaa5c33db73fd897d53c8240fcf4 (diff) |
Update to new mail sending API
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index e4b24b991..b66c388c4 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -445,7 +445,7 @@ public if !allow if self.handle_rejected_responses == 'bounce' - RequestMailer.deliver_stopped_responses(self, email, raw_email_data) if !is_external? + RequestMailer.stopped_responses(self, email, raw_email_data).deliver if !is_external? elsif self.handle_rejected_responses == 'holding_pen' InfoRequest.holding_pen_request.receive(email, raw_email_data, false, reason) elsif self.handle_rejected_responses == 'blackhole' @@ -557,7 +557,7 @@ public if self.requires_admin? # Check there is someone to send the message "from" if !set_by.nil? || !self.user.nil? - RequestMailer.deliver_requires_admin(self, set_by) + RequestMailer.requires_admin(self, set_by).deliver end end end |