This commit is contained in:
parent
d27b46a81b
commit
31319fe3f3
|
|
@ -14,7 +14,7 @@ class OrderMailer < ApplicationMailer
|
|||
ss = ScSetting.first
|
||||
otp = OrderToPdf.new(@order)
|
||||
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}",
|
||||
from: "#{ss.shop_name} <kaktusiarnia.rumia@gmail.com>",
|
||||
to: ss.shop_owners_emails)
|
||||
|
|
|
|||
Loading…
Reference in New Issue