• I need to use this process per changes to Contact Form 7 5.4:

    add_action( ‘wpcf7_before_send_mail’, ‘my_dynamic_attachments’ );
    function my_dynamic_attachments( $cf7 ){
    $properties = $cf7->get_properties();
    $properties[‘mail’][‘attachments’] = SOME_FILE_PATH;
    $cf7->set_properties( $properties );
    }

    I need to know what SOME_FILE_PATH is relative to. I asked the original poster and was instructed to start a new topic. Is SOME_FILE_PATH a physical path on the server or is it relative to wp-content or another directory? I am creating the file to be attached in a subdirectory off of wp-content/uploads/. I’ve tried several different directory references and I can get the email but there is no attachment.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Upload File Issue’ is closed to new replies.