The Contact Form 7 Wordpress plugin can send file attachments in it’s e-mails, either files uploaded by the user or “hard-coded” into the File Attachments field in the form configuration.

However it didn’t/doesn’t seem to process field substitutions in the File Attachments text out-of-the-box.

So I wrote this quick hook, to process substitutions on wpcf7_before_send_mail;

Only tested in a few versions of Wordpress and Contact Form 7, so please drop a comment on the Gist if you spot any issues :)