Class: Blog::CommentMailer

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

Instance Method Summary collapse

Instance Method Details

#notification(comment) ⇒ Object



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

def notification(comment)
  subject   =  BlogComment::Notification.subject
  recipients = BlogComment::Notification.find_notification_recipient
  from     =   '[email protected]'
  sent_on   =  Time.now
  @comment =  comment.body
  mail(:subject => subject, :from => from, :body => @comment, :to => recipients)
end