negos_app/app/mailers/product_orders_mails.rb
Nicolas Bally ad25fe2e90 suite
2017-09-27 12:54:54 +02:00

29 lines
718 B
Ruby
Executable File

# -*- encoding : utf-8 -*-
class ProductOrdersMails < ActionMailer::Base
layout 'mail'
default from: "Negos <contact@negos.pro>"
def confirmation_cheque(product_order, options = {})
@options = options
@product_order = product_order
@email = @product_order.customer.email
@title = "Merci pour votre commande."
mail(:to => @email, :bcc => "info@nicolasbally.com", :subject => @title)
end
def confirmation_cb(product_order, options = {})
@options = options
@product_order = product_order
@email = @product_order.customer.email
@title = "Merci pour votre commande."
mail(:to => @email, :bcc => "info@nicolasbally.com", :subject => @title)
end
end