Class: Postman

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/app/models/postman.rb

Instance Method Summary collapse

Instance Method Details

#password_reset_instructions(user) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/app/models/postman.rb', line 12

def password_reset_instructions(user)
  subject       'Password Reset Instructions'
  from          configatron.emails.password_reset_instructions.from
  recipients    user.email
  sent_on       Time.now
  body          :password_reset_url =>  password_reset_url(user.perishable_token)
end

#welcome_email(user) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/app/models/postman.rb', line 4

def welcome_email(user)
  subject     'Welcome to MyWebSite.com!'
  from        configatron.emails.welcome.from
  recipients  user.email
  sent_on     Time.now
  body        :user => user
end