Class: UserMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- UserMailer
- Defined in:
- app/mailers/user_mailer.rb
Instance Method Summary collapse
-
#maintenance_email(body, subject = 'TaxonWorks - Upcoming maintenance') ⇒ Object
Send a message that the server will be up/down or intermitant in the near future.
- #password_reset_email(user, token) ⇒ Object
- #welcome_email(user) ⇒ Object
Instance Method Details
#maintenance_email(body, subject = 'TaxonWorks - Upcoming maintenance') ⇒ Object
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 |
#password_reset_email(user, token) ⇒ Object
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 |
#welcome_email(user) ⇒ Object
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 |