refinerycms-blog/app/mailers/refinery/blog/comment_mailer.rb

14 lines
380 B
Ruby

module Refinery
module Blog
class CommentMailer < ActionMailer::Base
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
end
end
end