coton_app/app/mailers/admin_mailer.rb
Nicolas Bally e4e3ba871f suite
2020-07-09 10:44:40 +02:00

14 lines
517 B
Ruby

class AdminMailer < ActionMailer::Base
def password_reset(admin)
@admin = admin
mail :to => admin.email, :subject => "Reinitialisation du mot de passe.", :from => "n.bally@quartz.xyz"
end
def notify_comments
mail :to => "n.bally@quartz.xyz", :subject => "Nouveaux commentaires à modérer sur le blog", :from => "n.bally@quartz.xyz"
end
def notify_order
mail :to => "jp.vallon@abela.fr", :subject => "Nouvelle commande enregistrée par le site", :from => "n.bally@quartz.xyz"
end
end