class AdminMailer < ApplicationMailer layout "mail" def password_reset(admin) @admin = admin mail :to => admin.email, :subject => "Reinitialisation du mot de passe.", :from => "info@nicolasbally.com" end def new_need(admin, need) @need = need mail to: admin.email, subject: "Nouvelle proposition de besoin" end end