Class: UserMailer
- Inherits:
-
ApplicationMailer
- Object
- ActionMailer::Base
- ApplicationMailer
- UserMailer
- Defined in:
- app/mailers/user_mailer.rb
Instance Method Summary collapse
Instance Method Details
#invite_email ⇒ Object
8 9 10 11 12 |
# File 'app/mailers/user_mailer.rb', line 8 def invite_email @accept_path = params[:accept_path] mail(to: @user.email, subject: "Invite to #{@service_name}") end |
#load_params ⇒ Object
14 15 16 17 18 19 |
# File 'app/mailers/user_mailer.rb', line 14 def load_params @user = User.find(params[:user_id]) @invited_by = User.find_by(uid: params[:invited_by_uid]) @service_name = Rails.configuration.name @service_url = Rails.configuration.host_url end |
#welcome_email ⇒ Object
4 5 6 |
# File 'app/mailers/user_mailer.rb', line 4 def welcome_email mail(to: @user.email, subject: "Welcome to #{@service_name}") end |