send a pdf in a form notification email

How to Send a PDF Attachment in a Form Notification Email

Want to learn how to send a PDF attachment in a form notification email?

Being able to send PDFs to site visitors after they’ve subscribed is one of the easiest ways to deliver the lead magnet you promised in exchange for an email address.

In this article, we’ll show you how to send a PDF in a form notification email using WPForms.

Why Offer Lead Magnets?

Lead magnets are one of the best ways to build your email list. Used as an incentive to get people to subscribe, lead magnets are pieces of high-quality content you can deliver once they successfully sign up.

Good lead magnets are valuable enough for people to want to sign up for your email list and continue to receive marketing materials from you in the future.

Some of the most common lead magnets include PDFs in the form of:

WPForms is the best WordPress Form Builder plugin. Get it for free!
  • ebooks
  • Checklists
  • Reports
  • Case Studies
  • Templates
  • Resource Lists
  • Guides
  • Infographics
  • And so much more

Email marketing is critical if you want to grow your readership or customer base. It’s the best way to communicate with people that are interested in what you have to offer. Plus, you own your email list and have complete control over it at all times.

Not to mention, email marketing is known for having the highest ROI when compared to digital marketing strategies like SEO and advertisements.

email marketing roi

If you want to learn how to create a lead magnet and send it in a marketing email or add it to your form’s confirmation messages, check out this helpful tutorial on how to create a simple lead magnet optin form in WordPress.

So, let’s see how to can send your lead magnet to new subscribers in the WPForms email notification.

Step 1: Create a lead Magnet

The first thing you’ll need to do is create a lead magnet for your subscribe form.

If you need some inspiration, you can always check out this roundup of highly effective lead magnet ideas to help you grow your email list. Though not all of them will be PDFs you can offer, there are plenty of options to choose from.

Once you’ve created your PDF lead magnet, upload it to your WordPress website.

To do this, go to Media » Add New and upload it to your site like you would an image.

Media Library

If the PDF attachment you’re creating is duplicating any content that is already on your website, you might want to hide it from Google so you don’t get penalized in search rankings for having duplicate content. You also don’t want the lead magnet to rank higher than the original piece of content.

To hide your lead magnet from Google, you can use the robots.txt file of your site to make sure Google doesn’t index it.

For example, let’s say you’re offering site visitors a PDF version of a blog post and it has a URL that looks like this:

To hide it from search engines, here is how you’ll add this URL to your robots.txt file.

User-agent: *
Disallow: /2018/12/printable.pdf

For more help with this step, read up on how to hide pages from Google.

Step 2: Create a New WordPress Form

To create a new WordPress form, you’ll need to install and activate the WPForms plugin. For more details, see this step by step guide on how to install a plugin in WordPress.

Next, you’ll need to create a signup form. For help with this step, see our tutorial on how to create a Mailchimp subscribe form as an example to get started.

Newsletter Signup Form Preview

Keep in mind, you can create many types of forms with the WPForms plugin templates:

All of these forms, and the hundred more you can create with the WPForms Form Templates addon, can have a signup checkbox added to them to encourage people to subscribe to your email list in exchange for a lead magnet.

Just make sure that the form you create includes details about the lead magnet people will receive if they sign up.

Content Upgrade Newsletter Form

Step 3: Add the PDF to Your Form’s Notification Email

To add your PDF lead magnet to your form’s notification email, first go to Media » Library and find the PDF attachment you uploaded to your website that will serve as your lead magnet.

Then, copy the lead magnet’s URL.

pdf in media library

Next, go to Settings » Notifications in the form editor.

form notification settings

Then, in the Message section, paste this HTML, complete with the URL of your PDF and the text you want for the link:

<a href=”COPIEDURL” target=”_blank” >Text for link</a>

So, for our example, our notification’s message section will look like this:

add pdf attachment to notification email

Click Save.

Now, any time someone fills out your newsletter signup form and subscribes, they will receive a notification email from you that includes the lead magnet you promised them for subscribing.

If you find that your WordPress email notifications aren’t delivering the way they’re supposed to, be sure to read up on how to get WordPress from notifications using the WP Mail SMTP plugin so that you know every site visitor that subscribes to your email list gets their lead magnet.

Final Thoughts

And there you have it! You now know how to send a PDF attachment in a form notification email to people when they sign up for your email list.

Want to save all your form entries via PDF? Check out this article on how to print your WordPress form submissions to PDF.

So, what are you waiting for? Get started with the most powerful WordPress forms plugin today.

And don’t forget, if you like this article, then please follow us on Facebook and Twitter.

Using WordPress and want to get WPForms for free?

Enter the URL to your WordPress website to install.


  1. Hi !

    Is there a possible way to receive and send notifications (all_fields) in a .pdf format or a Carbon Copy in .pdf ?

    Thank you !

    1. Hi Greg,

      We don’t have a way to do this right now, but I’ve made a note on our feature request list so we can keep it on our radar! Thanks for the suggestion 🙂

    1. Hi Bob,

      We don’t have a way to do this right now, but I’ve made a note on our feature request list so we can keep it on our radar! Thanks for the suggestion 🙂

  2. Hi we have a problem just on gmail, I mean that all the people with an email on gmail, are not getting the email. Which is the problem?

  3. This appears to just add a link for download – is there a way to actually attach the PDF document in the email. So the lead doesn’t click a link, but rather sees a PDF file attached with the email?

    1. Hi Jason,

      WPForms doesn’t support including attaching files to emails currently. The reason is that it can often hurt email deliverability. Different email providers have different limits on the type and size of files they can accept. Sending files that don’t pass these rules most often means the email won’t get delivered or will bounce.

      I’m sorry we don’t have quite what you’re looking for but I hope this helps!

  4. Hi,

    I am trying to use a link to a pdf in a notification email. But the link in the email is unclickable (so you cannot access the pdf). Other than being unclickable, it looks like a link (it is the link color and only the text meant to be shown–not the url or any code–is visible).

  5. I must have done something wrong or I am confused. I went through these steps, but the pdf download link was included in the email notification that I received as the administrator and not sent to the person who filled out the contact form. Any help would be appreciated.

  6. I tried to include a link to a PDF in the notification email, but the link is not clickable. If I copy the link, it looks like this: x-webdoc://630916B8-D6DE-4633-B34E-8D8570739C2A/””.
    Before the actual link, the email link contain the x-webdoc part, which is the reason that the link doesn’t work. How do I solve this?

  7. It seems there is a bug in sending the link via the message section. When I open the email the desired text is not clickable and I saw this same issue in some previous tickets.
    I even checked the inspect code of the page and there wasn’t any HTML tag I mean.

    Could you please check and solve this problem? I really need this. Thanks in advance

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.