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');