Class: Maquina::UserNotificationsMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/maquina/user_notifications_mailer.rb

Instance Method Summary collapse

Instance Method Details

#invitation_emailObject



5
6
7
8
9
10
11
12
13
14
# File 'app/mailers/maquina/user_notifications_mailer.rb', line 5

def invitation_email
  @email = params[:email]
  @url = params[:url]
  @inviteer = params[:inviteer]
  @org = params[:org] || I18n.t("application_name")

  subject = I18n.t("mailers.invitation_email.subject", org: @org)

  mail(to: @email, subject: subject)
end