Sha256: e4298c9558c7907eb0c1b6814a24d2695f551bde445198142243b2294f4e0881
Contents?: true
Size: 1000 Bytes
Versions: 3
Compression:
Stored size: 1000 Bytes
Contents
module LatoCore # This class is used for superusers mail actions. class SuperusersMailer < ApplicationMailer # This function send a normal notification message to users. def notify(user, title, message) # imposto i dati come variabili di classe @title = title @message = message # definisco oggetto email subject = "#{CORE_LANG['mailers']['notify_subject']} #{core_getApplicationName}" # invio l'email di notifica all'utente mail(to: user.email, subject: subject, template_path: 'lato_core/mailers/superusers') end # This function send a recover password request to user. def recover_password(email, code_url) # identifico codice completo per l'utente @recover_url = core_getApplicationURL + lato_core.password_edit_path(code_url) # invio l'email all'utente mail(to: email, subject: CORE_LANG['recover_password']['email_subject'], template_path: 'lato_core/mailers/superusers') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lato_core-1.1.5 | app/mailers/lato_core/superusers_mailer.rb |
lato_core-1.1.4 | app/mailers/lato_core/superusers_mailer.rb |
lato_core-1.1.3 | app/mailers/lato_core/superusers_mailer.rb |