Class: PersonMailer

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

Instance Method Summary collapse

Instance Method Details

#welcome_email(person, password, options = {}) ⇒ Object


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

def welcome_email(person, password, options = {})
  @person = person
  @password = password

  mail(:to => [@person.email, @person., @person.personal_email],
       :subject => options[:subject] || 'Welcome to Carnegie Mellon University Silicon Valley (' + @person.email + ')',
       :date => Time.now)
end