aboutsummaryrefslogtreecommitdiffstats
path: root/app/mailers/blog/comment_mailer.rb
blob: 3e4c76d322b17ec3a3e8ebfced841516f209a3b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
class Blog::CommentMailer < ActionMailer::Base

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

end