Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (21 sloc) 880 Bytes
class OrderMailer < ActionMailer::Base
def thankyou(order, bcc = true)
from $STORE_PREFS['purchase_receipt_sender_email']
recipients order.email
bcc $STORE_PREFS['purchase_receipt_bcc_email'] if bcc == true
subject "Purchase Receipt for Order ##{order.id}"
subject subject + ' *' if not order.comment.blank?
content_type "multipart/alternative"
part :content_type => "text/plain",
:body => render_message("thankyou_plain", :order => order)
part :content_type => "text/html",
:transfer_encoding => 'base64',
:body => render_message("thankyou_html", :order => order)
end
def lost_license_sent(order)
recipients $STORE_PREFS['lost_license_sent_notification_recipient_email']
from $STORE_PREFS['lost_license_sent_notification_sender_email']
subject 'Lost License Sent'
body 'order' => order
end
end
Something went wrong with that request. Please try again.