class UserMailer < ApplicationMailer layout 'mailers/layout' def new_account_warning(user) @user = user subject = "Création de compte" mail(to: user.email, subject: subject) end end