boissier_app/app/mailers/notification.rb
Nicolas Bally 0677361faa modif
2011-06-30 19:52:31 +02:00

17 lines
532 B
Ruby

# -*- encoding : utf-8 -*-
class Notification < ActionMailer::Base
default :from => "admin@pharmacieboissier.com"
# Subject can be set in your I18n file at config/locales/en.yml
# with the following lookup:
#
# en.notification.prescription_received.subject
#
def prescription_received
mail(:to => "info@pharmacieboissier.com ", :subject => "Nouvelle ordonnance reçu.") do |format|
format.html { render :inline => "Une nouvelle ordonnance à été reçu sur le site de la pharmacie." }
end
end
end