Class: Refinery::Blog::CommentMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/refinery/blog/comment_mailer.rb

Instance Method Summary collapse

Instance Method Details

#notification(comment, request) ⇒ Object



5
6
7
8
9
10
# File 'app/mailers/refinery/blog/comment_mailer.rb', line 5

def notification(comment, request)
  @comment = comment
  mail :subject => Blog::Comment::Notification.subject,
       :to => Blog::Comment::Notification.recipients,
       :from => "\"#{Refinery::Core.site_name}\" <no-reply@#{request.domain}>"
end