mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
test sending booking do to email
This commit is contained in:
@@ -367,18 +367,17 @@ class InvoiceController extends Controller
|
||||
$zip->close();
|
||||
$attachment = base64_encode(File::get($zipname));
|
||||
|
||||
// $do = $this->generateSupplierDo($booking->id);
|
||||
Mail::raw( 'DO for bookings po approved on '.Carbon::today(), function($message) use ($attachment){
|
||||
$message->from('info@cief-malaysia.com');
|
||||
$message->to('uldvstar@gmail.com');
|
||||
$message->subject('DO for bookings on'.Carbon::today());
|
||||
//Attach PDF doc
|
||||
$message->attachData($attachment,'do_'.Carbon::today()->format('Y_m_d').'.zip', [
|
||||
'mime' => 'application/pdf',
|
||||
$message->attachData($attachment, 'do_'.Carbon::today()->format('Y_m_d').'.zip', [
|
||||
'mime' => 'application/zip',
|
||||
]);
|
||||
});
|
||||
|
||||
// File::delete($zipname);
|
||||
File::delete($zipname);
|
||||
|
||||
if(!$booking) {
|
||||
return response()->json(['message' => 'Unable to Complete Booking. Please Approve Again'], 500);
|
||||
|
||||
Reference in New Issue
Block a user