# * George Moschovitis # (c) 2004-2005 Navel, all rights reserved. # $Id$ require 'nitro/mail' # A simple mailer. class BlogMailer < N::Mailer def initialize(*p) super(*p) @template_root = 'src/views' end def blog_entry_email(to, entry) @from = 'system@blog.com' @to = to @subject = "Blog Entry: #{entry.title}" @body.entry = entry end end