Category: sendgrid

Swiftmailer pdf attachment from snappy bundle

I have an function downloadPdf($id, KnpSnappyPdf $snappy, Request $request). This function downloads a pdf with information from objects everything works fine. This is the function: public function downloadPdf($id, KnpSnappyPdf $snappy, Request $request): Response { //search id $workOrder = $this->getDoctrine()->getRepository(WorkOrders::class)->find($id); //data…