app/mailers/jabe/comment_mailer.rb
module Jabe
class CommentMailer < ActionMailer::Base
include PublicEntryUrl
def notification(comment)
@comment = comment
mail(:to => Admin.all.map(&:email),
:subject => "Comment on: #{comment.entry.title}",
:from => Jabe::SETTINGS.mail_from || 'edit-me-in-settings@example.com'
)
end
end
end