Class: UserMailer
- Inherits:
-
PostageApp::Mailer
- Object
- PostageApp::Mailer
- UserMailer
- Defined in:
- app/mailers/user_mailer.rb
Instance Method Summary collapse
Instance Method Details
#email_verification(user) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'app/mailers/user_mailer.rb', line 26 def email_verification(user) postageapp_template 'main_layout' @user = user mail( :subject => "Your account has been created. Please verify your email address", :to => user.email ) end |
#new_issue(issue) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'app/mailers/user_mailer.rb', line 17 def new_issue(issue) postageapp_template 'main_layout' @issue = issue mail( :subject => "#{issue.number}-#{issue.area.name}", :to => issue.area.users.collect(&:email) ) end |
#password_reset(user) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/mailers/user_mailer.rb', line 8 def password_reset(user) postageapp_template 'main_layout' @user = user mail( :to => user.email, :subject => "You have requested a new password" ) end |