This commit is contained in:
Adrian Hinz 2018-06-02 09:28:05 +02:00
parent d27b46a81b
commit 31319fe3f3
1 changed files with 1 additions and 1 deletions

View File

@ -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)