Class: ExportMailer

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

Instance Method Summary collapse

Instance Method Details

#export_complete_for(user) ⇒ Object


4
5
6
7
8
9
10
11
# File 'app/mailers/export_mailer.rb', line 4

def export_complete_for(user)
  @user = user

  mail(to: @user.email, subject: I18n.t('notifier.export_email.subject', name: @user.name)) do |format|
    format.html { render 'users/export_email' }
    format.text { render 'users/export_email' }
  end
end

#export_failure_for(user) ⇒ Object


13
14
15
16
17
18
19
20
# File 'app/mailers/export_mailer.rb', line 13

def export_failure_for(user)
  @user = user

  mail(to: @user.email, subject: I18n.t('notifier.export_failure_email.subject', name: @user.name)) do |format|
    format.html { render 'users/export_failure_email' }
    format.text { render 'users/export_failure_email' }
  end
end

#export_photos_complete_for(user) ⇒ Object


22
23
24
25
26
27
28
29
# File 'app/mailers/export_mailer.rb', line 22

def export_photos_complete_for(user)
  @user = user

  mail(to: @user.email, subject: I18n.t('notifier.export_photos_email.subject', name: @user.name)) do |format|
    format.html { render 'users/export_photos_email' }
    format.text { render 'users/export_photos_email' }
  end
end

#export_photos_failure_for(user) ⇒ Object


31
32
33
34
35
36
37
38
# File 'app/mailers/export_mailer.rb', line 31

def export_photos_failure_for(user)
  @user = user

  mail(to: @user.email, subject: I18n.t('notifier.export_photos_failure_email.subject', name: @user.name)) do |format|
    format.html { render 'users/export_photos_failure_email' }
    format.text { render 'users/export_photos_failure_email' }
  end
end