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