class Ziltoid::EmailNotifier
Attributes
from[RW]
subject[RW]
to[RW]
via_options[RW]
Public Class Methods
new(options)
click to toggle source
# File lib/ziltoid/email_notifier.rb, line 7 def initialize(options) self.via_options = options[:via_options] self.to = options[:to] self.from = options[:from] self.subject = options[:subject] end
Public Instance Methods
send(message)
click to toggle source
# File lib/ziltoid/email_notifier.rb, line 14 def send(message) Pony.mail( :to => self.to, :via => :smtp, :via_options => self.via_options, :from => self.from, :subject => self.subject, :body => message ) end