I want to send mail with attach diffrent PDF file in diffrent page name using Contact Form-7. Please Help ASAP. This Code not work [closed]

Question
function send_pdf( $cf7 ) {
    $id = $cf7->id();
    if ($id==741){
        $submission = WPCF7_Submission::get_instance();
        $submission->add_uploaded_file('pdf', get_template_directory().'/test.pdf');
    }
}

please send me full code

0
sachin Work 4 months 0 Answers 9 views 0

Leave an answer