Class: Shoppe::NotificationMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/shoppe/notification_mailer.rb

Instance Method Summary collapse

Instance Method Details

#order_received(order) ⇒ Object



4
5
6
7
8
# File 'app/mailers/shoppe/notification_mailer.rb', line 4

def order_received(order)
  @order = order
  staff = Shoppe::User.all.map(&:email_address)
  mail from: Shoppe.settings.outbound_email_address, to: staff, subject: "New Order Received"
end