Created
June 13, 2014 09:32
-
-
Save rocodev-tech/4a69a419debe592224e3 to your computer and use it in GitHub Desktop.
app/mailers/order_mailer.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class OrderMailer < ActionMailer::Base | |
| default from: "[email protected]" | |
| def notify_order_placed(order) | |
| @order = order | |
| @user = order.user | |
| @order_items = @order.items | |
| @order_info = @order.info | |
| mail(:to => @user.email , :subject => " [ArtStore] 感謝您完成本次的下單,以下是您這次購物明細 #{order.token}") | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment