From a2c249167b20c930aade2d25199d95c84d81a856 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Fri, 13 Nov 2020 13:17:48 +0800 Subject: [PATCH] test sending booking do to email --- app/Http/Controllers/InvoiceController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/InvoiceController.php b/app/Http/Controllers/InvoiceController.php index d2750734..85fda3dd 100644 --- a/app/Http/Controllers/InvoiceController.php +++ b/app/Http/Controllers/InvoiceController.php @@ -366,7 +366,8 @@ class InvoiceController extends Controller } $zip->close(); - $attachment = chunk_split(base64_encode(File::get($zipname))); +// $attachment = chunk_split(base64_encode(File::get($zipname))); + $attachment = public_path($zipname); Mail::raw( 'DO for bookings po approved on '.Carbon::today(), function($message) use ($attachment){ $message->from('exchange@cief-malaysia.com');