Class: GenericMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/generic_mailer.rb

Instance Method Summary collapse

Instance Method Details

#email(options = {}) ⇒ Object


6
7
8
9
10
11
12
13
14
# File 'app/mailers/generic_mailer.rb', line 6

def email(options = {})
  @to = options[:to]
  @message = options[:message]
  @url = options[:url]
  @url_label = options[:url_label]

  mail(:to => @to, :cc => options[:cc],
       :subject => options[:subject], :date => Time.now)
end