Sha256: 58482fcf25d62f2ef49078d6e95c10ab9f7fd9d77f6b710beb810364fb99d60d
Contents?: true
Size: 423 Bytes
Versions: 2
Compression:
Stored size: 423 Bytes
Contents
# * George Moschovitis <gm@navel.gr> # (c) 2004-2005 Navel, all rights reserved. # $Id: mailer.rb 1 2005-04-11 11:04:30Z gmosx $ require 'nitro/mail' # A simple mailer. class BlogMailer < Nitro::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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.16.0 | examples/blog/src/mailer.rb |
nitro-0.17.0 | examples/blog/src/mailer.rb |