From 8132a41f73e292ae349aba2389c3495ee4155355 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Thu, 12 Nov 2020 14:08:06 +0800 Subject: [PATCH] test sending booking do to email --- app/Http/Controllers/InvoiceController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/InvoiceController.php b/app/Http/Controllers/InvoiceController.php index 3dfac26d..e4dc4db7 100644 --- a/app/Http/Controllers/InvoiceController.php +++ b/app/Http/Controllers/InvoiceController.php @@ -367,14 +367,14 @@ class InvoiceController extends Controller $zip->close(); $attachment = base64_encode(File::get($zipname)); - Mail::raw( 'DO for bookings po approved on '.Carbon::today().' '.$attachment, function($message) use ($attachment){ - $message->from('info@cief-malaysia.com'); + Mail::raw( 'DO for bookings po approved on '.Carbon::today(), function($message) use ($attachment){ + $message->from('exchange@cief-malaysia.com'); $message->to('uldvstar@gmail.com'); $message->subject('DO for bookings on'.Carbon::today()); -// $message->attachData($attachment, 'do_'.Carbon::today()->format('Y_m_d').'.zip', [ -// 'mime' => 'application/zip', -// ]); + $message->attachData($attachment, 'do_'.Carbon::today()->format('Y_m_d').'.zip', [ + 'mime' => 'application/zip', + ]); }); File::delete($zipname);