Sha256: 175791cbbfd21e7b33870d5d3ea21a5aaac09a7c3a320b916cf746027bde4636

Contents?: true

Size: 388 Bytes

Versions: 4

Compression:

Stored size: 388 Bytes

Contents

class Blog::CommentMailer < ActionMailer::Base

  def notification(comment)
    subject   =  BlogComment::Notification.subject
    recipients = BlogComment::Notification.find_notification_recipient
    from     =   'fake@mcmsdevolper.com'
    sent_on   =  Time.now
    @comment =  comment.body
    mail(:subject => subject, :from => from, :body => @comment, :to => recipients)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mcms_blog-1.0.0 app/mailers/blog/comment_mailer.rb
mcms_blog-0.0.4 app/mailers/blog/comment_mailer.rb
mcms_blog-0.0.3 app/mailers/blog/comment_mailer.rb
mcms_blog-0.0.2 app/mailers/blog/comment_mailer.rb