Class: UserMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- UserMailer
- Defined in:
- app/mailers/user_mailer.rb
Instance Method Summary collapse
Instance Method Details
#reset_email(user, temp_password) ⇒ Object
11 12 13 14 15 16 |
# File 'app/mailers/user_mailer.rb', line 11 def reset_email(user, temp_password) @user = user @temp_password = temp_password @subject = 'Password Reset' mail(to: @user.email, subject: @subject) end |
#signup_email(user, temp_password) ⇒ Object
4 5 6 7 8 9 |
# File 'app/mailers/user_mailer.rb', line 4 def signup_email(user, temp_password) @user = user @temp_password = temp_password @subject = 'Welcome to oneClick!' mail(to: @user.email, subject: @subject) end |