title: Download File after submission in Contact Form 7 Wordpress
body: <p>I am trying to make one form which give functionality like when user enter name and email,then PDF file starts download automatically.</p>
  
  <p>And while i am applying this code in additional setting tab on submit button,it replay the error message like this.</p>
  
  <p>I am currently working in local machine, i know error is in contact form 7 mail tab,but don't know how to fix it?</p>
  
  <p>"There was an error trying to send your message. Please try again later."</p>
  
  <p>Here is my contact form 7 code:</p>
  
  <pre><code>&lt;label&gt; Name
      [text* your-name] &lt;/label&gt;
  
  &lt;label&gt; Email 
      [email* your-email] &lt;/label&gt;
  
  [submit "Download Now"]
  </code></pre>
  
  <p>Here is code that i write in Additional Setting for download PDF file directly when form is submitted</p>
  
  <pre><code>on_sent_ok: "location = 'http://localhost/wordpress/wp-content/uploads/2017/08/pdf-sample.pdf';"
  </code></pre>