title: Contact form 7, post data to seperate php file
body: <p>Im using CF7  to get user details.
  When user submit his form, i wanna get the input fields to my custom.php file and do some stuff in there.</p>
  
  <p>I tried doing that with the js on_sent_ok: URL/custom.php?.....fields data.... but i think this is not the right method. But anyway that is working for me.</p>
  
  <p>Is there a way to do that with hook action? I tried this.</p>
  
  <pre><code>function wpcf7_do_something (&amp;$cfdata) {
     $goURL = 'http://contactform7.com';
     $cfdata-&gt;set_properties( array( 'additional_settings' =&gt; "on_sent_ok: \"location = '".$goURL."';\"" ) );
   }
   add_action("wpcf7_before_send_mail", "wpcf7_do_something");
  </code></pre>
  
  <p>I tried to echo something , triger a js console.log, and to redirect inside the wpcf7_do_something function but nothing is works. I really dont know if it works at all.</p>
  
  <p>Is there a way to test if this action is working? 
  Is there a way to redirect to onother location?</p>
  
  <p>Thnx </p>