Replace the wpcf7_mail_components()
method in src/class-cf7-storage.php
with the following:
function wpcf7_mail_components( $components, $form ) {
$submission = WPCF7_Submission::get_instance();
if ( ! empty( $components['body'] ) && $submission ) {
$components['body'] = $this->mail_replace_file_urls( $components['body'], $submission->uploaded_files() );
}
return $components;
}