refinerycms-blog/app/mailers/blog/comment_mailer.rb
2010-11-15 17:39:52 +13:00

11 lines
375 B
Ruby

class Blog::CommentMailer < ActionMailer::Base
def notification(comment, request)
subject BlogComment::Notification.subject
recipients BlogComment::Notification.recipients
from "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
sent_on Time.now
@comment = comment
end
end