Laravel Vapor - test attaching a file from S3 in an email

This commit is contained in:
Dillon Ngo
2024-05-16 19:20:54 +08:00
parent 8355c81f20
commit a3ff963cc9
@@ -51,10 +51,10 @@ class ShipmentDepartureEmail extends AbstractEmail
$fileContent = Storage::disk('s3')->get('documents/' . $filename);
if ($fileContent) {
$mailMessage->attachData($fileContent, [
'as' => 'invoice.pdf',
'mime' => 'application/pdf',
]);
// $mailMessage->attachData($fileContent, [
// 'as' => 'invoice.pdf',
// 'mime' => 'application/pdf',
// ]);
}
}
else{