Class: Ixtlan::Mailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/ixtlan/mailer.rb

Instance Method Summary collapse

Instance Method Details

#error_notification(email_from, email_to, exception, error_file) ⇒ Object



26
27
28
29
30
31
32
33
# File 'lib/ixtlan/mailer.rb', line 26

def error_notification(email_from, email_to, exception, error_file)
  @subject    = exception.message
  @body       = {:text => "#{error_file}"}
  @recipients = email_to
  @from       = email_from
  @sent_on    = Time.now
  @headers    = {}
end

#new_user(email_to, email_from, login, url) ⇒ Object



17
18
19
20
21
22
23
24
# File 'lib/ixtlan/mailer.rb', line 17

def new_user(email_to, email_from, , url)
  @subject    = "details for #{url}"
  @body       = {:username => , :url => url}
  @recipients = email_to
  @from       = email_from
  @sent_on    = Time.now
  @headers    = {}
end

#password(email_to, email_from, password) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/ixtlan/mailer.rb', line 8

def password(email_to, email_from, password)
  @subject    = ''
  @body       = {:password => password}
  @recipients = email_to
  @from       = email_from
  @sent_on    = Time.now
  @headers    = {}
end