gravier_app/app/mailers/question_mailer.rb
2017-09-21 12:37:53 +02:00

17 lines
445 B
Ruby
Executable File

class QuestionMailer < ActionMailer::Base
default from: "contact@le-petit-gravier.com"
# Subject can be set in your I18n file at config/locales/en.yml
# with the following lookup:
#
# en.question.deliver.subject
#
def send_contact(contact)
@contact = contact
mail to: "contact@le-petit-gravier.com", :bcc => "info@nicolasbally.com" ,:reply_to => @contact.email.to_s, :subject => "Nouveau mail par le site"
end
end