aboutsummaryrefslogtreecommitdiffstats
path: root/app/mailers/refinery/blog/comment_mailer.rb
blob: 935ccf7504142621aa28badd5cff683d33f2dca6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Refinery
  module Blog
    class CommentMailer < ActionMailer::Base

      def notification(comment, request)
        @blog_comment = comment
        mail :subject => Blog::Comment::Notification.subject,
             :recipients => Blog::Comment::Notification.recipients,
             :from => "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
      end

    end
  end
end