title: WordPress - send email to admin on form submit
body: <p>I have a template with a form on it and wish an email to be sent to admin email address when the submit button is clicked.</p>
  
  <p>I created <code>send_email.php</code> in template folder, so on form submit it is called:</p>
  
  <pre><code>&lt;?php
     $headers = 'From: My Name &lt;myname@example.com&gt;' . "\r\n";
     wp_mail('test@example.org', 'subject', 'message', $headers );
  ?&gt;
  </code></pre>
  
  <p><strong>Question:</strong> Which files should be included in order to make the mail function work?</p>