$fileName = 'LS18-' . $posted_data["lesernummer"] . '.pdf'; $pdf->Output(FPDF_PATH. $fileName, 'F'); add_filter( 'wpcf7_mail_components', 'mycustom_wpcf7_mail_components' ); function mycustom_wpcf7_mail_components($components){ if (empty($components['attachments'])) { $filepath = FPDF_PATH .$filename; $components['attachments'] = $filepath; } return $components; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)