Class: KirguduBase::AuthenticationsMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- KirguduBase::AuthenticationsMailer
- Defined in:
- app/mailers/authentications_mailer.rb
Instance Method Summary collapse
- #confirmation_code(from, to, user, confirmation, template_path) ⇒ Object
- #restore_password_code(from, to, user, restore) ⇒ Object
- #restore_password_success(from, to, user, password) ⇒ Object
Instance Method Details
#confirmation_code(from, to, user, confirmation, template_path) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/mailers/authentications_mailer.rb', line 5 def confirmation_code(from, to, user, confirmation, template_path) @data = {} @data[:user] = user @data[:confirmation] = confirmation # mail(from: from, to: to, subject: I18n.t("kirgudu_base.authentications.confirm_email.email.subject")) do |format| # format.text { render "#{KirguduBase.path_to_views}/mailers/authentications/confirmation_code.html" } # format.html { render "#{KirguduBase.path_to_views}/mailers/authentications/confirmation_code.html" } # end mail(from: from, to: to, subject: I18n.t("kirgudu_base.authentications.confirm_email.email.subject"), content_type: "text/html") do |format| format.html { render "#{KirguduBase.path_to_views}/mailers/authentications/confirmation_code" } end end |
#restore_password_code(from, to, user, restore) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'app/mailers/authentications_mailer.rb', line 21 def restore_password_code(from, to, user, restore) @data = {} @data[:user] = user @data[:restore] = restore # mail(from: from, to: to, subject: I18n.t("kirgudu_base.authentications.restore_password.email.subject")) do |format| # format.text { render "#{KirguduBase.path_to_views}/mailers/authentications/restore_password_code" } # format.html { render "#{KirguduBase.path_to_views}/mailers/authentications/restore_password_code" } # end mail(from: from, to: to, subject: I18n.t("kirgudu_base.authentications.restore_password_code.email.subject"), content_type: "text/html") do |format| format.html { render "/mailers/authentications/restore_password_code" } end end |
#restore_password_success(from, to, user, password) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'app/mailers/authentications_mailer.rb', line 37 def restore_password_success(from, to, user, password) @data = {} @data[:user] = user @data[:password] = password # mail(from: from, to: to, subject: I18n.t("kirgudu_base.authentications.restore_password_success.email.subject"), content_type: "text/html") do |format| # format.text { render "#{KirguduBase.path_to_views}/mailers/authentications/restore_password_success" } # format.html { render "#{KirguduBase.path_to_views}/mailers/authentications/restore_password_success" } # end mail(from: from, to: to, subject: I18n.t("kirgudu_base.authentications.restore_password_success.email.subject"), content_type: "text/html") do |format| format.html { render "#{self.class.get_method_latest_result(:get_kb_template)}#{KirguduBase.path_to_views}/mailers/authentications/restore_password_success" } end end |