Class: UserMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/models/user_mailer.rb

Instance Method Summary collapse

Instance Method Details

#authorization_inform(user, url, suser, result) ⇒ Object



39
40
41
42
43
44
45
46
# File 'app/models/user_mailer.rb', line 39

def authorization_inform(user, url, suser, result)
  @subject    = '[gfdnavi] authorization information'
  @body       = {:user => user, :url => url, :suser => suser, :result => result}
  @recipients = User.find(:all, :conditions => ["super_user=?", true]).collect{|u| u.email_address}
  @from       = "#{GFDNAVI_ADMIN_NAME} <#{GFDNAVI_ADMIN_EMAIL}>"
  @sent_on    = Time.now
  @headers    = {}
end

#signup_accepted(user, url) ⇒ Object



21
22
23
24
25
26
27
28
# File 'app/models/user_mailer.rb', line 21

def (user, url)
  @subject    = '[gfdnavi] Your signup request was accepted'
  @body       = {:user => user, :url => url}
  @recipients = "#{user.full_name} <#{user.email_address}>"
  @from       = "#{GFDNAVI_ADMIN_NAME} <#{GFDNAVI_ADMIN_EMAIL}>"
  @sent_on    = Time.now
  @headers    = {}
end

#signup_confirm(user, url) ⇒ Object



3
4
5
6
7
8
9
10
# File 'app/models/user_mailer.rb', line 3

def (user, url)
  @subject    = '[gfdnavi] sign up confirmation'
  @body       = {:user => user, :url => url}
  @recipients = "#{user.full_name} <#{user.email_address}>"
  @from       = "#{GFDNAVI_ADMIN_NAME} <#{GFDNAVI_ADMIN_EMAIL}>"
  @sent_on    = Time.now
  @headers    = {}
end

#signup_inform(user, url) ⇒ Object



12
13
14
15
16
17
18
19
# File 'app/models/user_mailer.rb', line 12

def (user, url)
  @subject    = '[gfdnavi] sign up information'
  @body       = {:user => user, :url => url}
  @recipients = User.find(:all, :conditions => ["super_user=?", true]).collect{|u| u.email_address}
  @from       = "#{GFDNAVI_ADMIN_NAME} <#{GFDNAVI_ADMIN_EMAIL}>"
  @sent_on    = Time.now
  @headers    = {}
end

#signup_rejected(user, url) ⇒ Object



30
31
32
33
34
35
36
37
# File 'app/models/user_mailer.rb', line 30

def (user, url)
  @subject    = '[gfdnavi] Your signup request was rejected'
  @body       = {:user => user, :url => url}
  @recipients = "#{user.full_name} <#{user.email_address}>"
  @from       = "#{GFDNAVI_ADMIN_NAME} <#{GFDNAVI_ADMIN_EMAIL}>"
  @sent_on    = Time.now
  @headers    = {}
end