Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 3211c0555b
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.476 kB
class OrderMailer < ActionMailer::Base
add_template_helper(ApplicationHelper)
MY_EMAIL = "masha.ku@gmail.com"
default from: MY_EMAIL
def email_order(order)
@order = order
mail(to: MY_EMAIL, subject: "Bananza order \#"+@order.id.to_s+" created").deliver
end
def email_order_confirmation(order)
@order = order
mail(to: [order.user_email, MY_EMAIL], subject: "Order \#"+@order.id.to_s+" confirmation for Banana Bread").deliver
end
end
Jump to Line
Something went wrong with that request. Please try again.