suite
This commit is contained in:
parent
89a9647c25
commit
b1a060433a
@ -14,7 +14,7 @@ class Public::ContactsController < ApplicationController
|
|||||||
|
|
||||||
if @contact.save
|
if @contact.save
|
||||||
QuestionMailer.send_contact(@contact).deliver
|
QuestionMailer.send_contact(@contact).deliver
|
||||||
|
QuestionMailer.remerciement(@contact).deliver
|
||||||
render :action => :create
|
render :action => :create
|
||||||
else
|
else
|
||||||
|
|
||||||
|
@ -11,6 +11,12 @@ class QuestionMailer < ActionMailer::Base
|
|||||||
|
|
||||||
mail to: "contact@uneautrelaverie.com", :bcc => "info@nicolasbally.com" ,:reply_to => @contact.email, :subject => "Nouveau mail par le site"
|
mail to: "contact@uneautrelaverie.com", :bcc => "info@nicolasbally.com" ,:reply_to => @contact.email, :subject => "Nouveau mail par le site"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def remerciement(contact)
|
||||||
|
@contact = contact
|
||||||
|
|
||||||
|
mail to: @contact.email, :bcc => "info@nicolasbally.com" ,:subject => "Merci pour votre demande de contact"
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
12
app/views/question_mailer/remerciement.html.haml
Normal file
12
app/views/question_mailer/remerciement.html.haml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
%p Bonjour,
|
||||||
|
|
||||||
|
%p Nous avons bien reçu votre demande de contact, et nous vous remercions de l’intérêt que vous témoignez à Une autre laverie.
|
||||||
|
|
||||||
|
%p Nous allons prendre contact téléphoniquement avec vous dans les plus brefs délais.
|
||||||
|
|
||||||
|
%p Cordialement,
|
||||||
|
|
||||||
|
%p L'équipe Une autre laverie
|
||||||
|
|
||||||
|
|
||||||
|
=image_tag "http://une-autre-laverie.com/remerciement.jpg", :style => "display:block;margin:20px auto;max-with:500px;"
|
@ -28,6 +28,12 @@ CMSnb::Application.configure do
|
|||||||
config.assets.debug = true
|
config.assets.debug = true
|
||||||
|
|
||||||
|
|
||||||
config.action_mailer.delivery_method = :file
|
#config.action_mailer.delivery_method = :file
|
||||||
|
|
||||||
|
|
||||||
|
config.action_mailer.delivery_method = :smtp
|
||||||
|
config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 }
|
||||||
|
|
||||||
|
|
||||||
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
||||||
end
|
end
|
||||||
|
BIN
public/remerciement.jpg
Normal file
BIN
public/remerciement.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 88 KiB |
Loading…
x
Reference in New Issue
Block a user