Class: UserMailer

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) maintenance_email(body, subject = 'TaxonWorks - Upcoming maintenance')

Send a message that the server will be up/down or intermitant in the near future



16
17
18
19
# File 'app/mailers/user_mailer.rb', line 16

def maintenance_email(body, subject = 'TaxonWorks - Upcoming maintenance')
  @body = body
  mail(bcc: User.pluck(:email), subject: subject) 
end

- (Object) password_reset_email(user, token)



9
10
11
12
13
# File 'app/mailers/user_mailer.rb', line 9

def password_reset_email(user, token)
  @user = user
  @token = token
  mail(to: user.email, subject: 'Password reset request for TaxonWorks')
end

- (Object) welcome_email(user)



4
5
6
7
# File 'app/mailers/user_mailer.rb', line 4

def welcome_email(user)
  @user = user
  mail(to: user.email, subject: 'Welcome to TaxonWorks')
end