From ad73f842782aa85a28d644ab310a6aad305f2cf0 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sun, 12 Dec 2021 21:12:54 +0800 Subject: [PATCH] debug do email to vt --- app/Console/Commands/EmailDoToVTCommand.php | 20 ++++++++++---------- app/Console/Kernel.php | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/Console/Commands/EmailDoToVTCommand.php b/app/Console/Commands/EmailDoToVTCommand.php index 222c77bf..e2c328cf 100644 --- a/app/Console/Commands/EmailDoToVTCommand.php +++ b/app/Console/Commands/EmailDoToVTCommand.php @@ -79,18 +79,18 @@ class EmailDoToVTCommand extends Command $zip->close(); - Mail::raw( "Attention to VT Admin team:\r\n\r\nKindly refer to the attachment for our DAILY DO COMPILATION ".Carbon::yesterday()->format('d-m-Y').".\r\n\r\n**This is an automatically generated email – please do not reply to it. If you have any queries kindly contact our admin team through Wechat.\r\n\r\n\r\nCIEF WORLDWIDE SDN BHD", function($message) use ($attachment){ - $message->from('exchange@cief-malaysia.com'); - $message->to(['uldvstar@gmail.com']); -// $message->to(['vtnation16@gmail.com', 'vtnation@gmail.com', 'atvantic04@gmail.com', 'vtnation2@gmail.com']); -// $message->cc(['shafiqa_sukeri@cief-malaysia.com', 'frontendcief@gmail.com', 'pm@cief-malaysia.com', 'hasan@cief-malaysia.com', 'shipping_admin@cief-malaysia.com', 'hasanakbar27@gmail.com', 'pmwong2019@gmail.com']); - $message->subject('CIEF DO COMPILATION '.Carbon::yesterday()->format('d-m-Y')); - - $message->attach($attachment); - }); +// Mail::raw( "Attention to VT Admin team:\r\n\r\nKindly refer to the attachment for our DAILY DO COMPILATION ".Carbon::yesterday()->format('d-m-Y').".\r\n\r\n**This is an automatically generated email – please do not reply to it. If you have any queries kindly contact our admin team through Wechat.\r\n\r\n\r\nCIEF WORLDWIDE SDN BHD", function($message) use ($attachment){ +// $message->from('exchange@cief-malaysia.com'); +// $message->to(['uldvstar@gmail.com']); +//// $message->to(['vtnation16@gmail.com', 'vtnation@gmail.com', 'atvantic04@gmail.com', 'vtnation2@gmail.com']); +//// $message->cc(['shafiqa_sukeri@cief-malaysia.com', 'frontendcief@gmail.com', 'pm@cief-malaysia.com', 'hasan@cief-malaysia.com', 'shipping_admin@cief-malaysia.com', 'hasanakbar27@gmail.com', 'pmwong2019@gmail.com']); +// $message->subject('CIEF DO COMPILATION '.Carbon::yesterday()->format('d-m-Y')); +// +// $message->attach($attachment); +// }); File::delete($attachment); - + log('sent'); echo 'success'; } diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index b75c2459..b1ddcdce 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -32,7 +32,7 @@ class Kernel extends ConsoleKernel { // $schedule->command('inspire')->hourly(); - $schedule->command('mail:EmailDoToVTCommand')->everyFiveMinutes(); + $schedule->command('mail:EmailDoToVTCommand')->everyMinute()->withoutOverlapping(); // ->dailyAt('10:00'); }