Is it possible to include a link to the uploaded files in the email?
-
Hi,
Is it possible to add a link to the uploaded files in the email that CF7 generates (instead of attaching the files to the email)?
According to the documentation, this might not be possible, since the files are deleted once the email is sent (https://contactform7.com/file-uploading-and-attachment#How-your-uploaded-files-are-managed).
I guess it might be possible to implement a workaround with a couple of hooks, something like this:
remove_action( 'template_redirect', 'wpcf7_cleanup_upload_files', 20, 0 ); add_action('wpcf7_before_send_mail', 'function_to_add_my_links', 11);
Is there a better alternative?
Thanks in advance!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Is it possible to include a link to the uploaded files in the email?’ is closed to new replies.