Merge branch 'master' of ssh://51.254.143.84:9319/home/git/pdfshop
This commit is contained in:
commit
af5a65fa70
|
|
@ -14,7 +14,7 @@ class OrderMailer < ApplicationMailer
|
||||||
ss = ScSetting.first
|
ss = ScSetting.first
|
||||||
otp = OrderToPdf.new(@order)
|
otp = OrderToPdf.new(@order)
|
||||||
attachments[otp.file_name] = otp.call
|
attachments[otp.file_name] = otp.call
|
||||||
sleep(5)
|
sleep(5) #to make sure pdf file saved on the disk
|
||||||
mail(subject: "Nowe zamówienie nr: #{@order.beauty_id}",
|
mail(subject: "Nowe zamówienie nr: #{@order.beauty_id}",
|
||||||
from: "#{ss.shop_name} <kaktusiarnia.rumia@gmail.com>",
|
from: "#{ss.shop_name} <kaktusiarnia.rumia@gmail.com>",
|
||||||
to: ss.shop_owners_emails,
|
to: ss.shop_owners_emails,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue