Enable Mail while generate invoice

This commit is contained in:
Djery-Tom 2022-01-26 09:11:53 +01:00
parent f1e8d90af1
commit ffe159720b
1 changed files with 5 additions and 5 deletions

View File

@ -123,11 +123,11 @@ class InvoiceController extends Controller
DB::commit(); DB::commit();
$recipients = [preg_replace("/\s+/", "", $hyper->email)]; // Supprimer les espaces dans le mail $recipients = [preg_replace("/\s+/", "", $hyper->email)]; // Supprimer les espaces dans le mail
// Mail::mailer('smtp')->raw($message, function ($message) use ($recipients, $title, $file) { Mail::mailer('smtp')->raw($message, function ($message) use ($recipients, $title, $file) {
// $message->subject($title) $message->subject($title)
// ->to($recipients) ->to($recipients)
// ->attachData($file->output(), str_replace(' ', '-', $title) . '.pdf'); ->attachData($file->output(), str_replace(' ', '-', $title) . '.pdf');
// }); });
} catch (\Throwable $t) { } catch (\Throwable $t) {
DB::rollBack(); DB::rollBack();