Attaching a PDF file in Contact Form 7 email notification

Contact Form 7, one of the best WordPress plugins to create contact forms in WordPress website. Contact Form 7 is not only used to create contact forms but due to a large number of extensions and code snippets, it is possible to create any kind of Form using Contact Form 7.

You can manually add a PDF file to email notifications by using Contact form 7 filters. Add below code in function.php file of your theme. You can add PDF file in your theme folder at any location and make changes in the file path in below function.


Disclaimer: *This post may contain affiliate links. I may earn a small commission when you click on the links and buy the products with no additional cost to you. Thank you.


Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments