test sending booking do to email

This commit is contained in:
omair saleh
2020-11-12 14:08:06 +08:00
parent 8ae92c7500
commit 8132a41f73
+5 -5
View File
@@ -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);