title: How to use wp_mail() function in wordpress
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  if (isset($_POST['sbt'])) {
  //user posted variables
    $name = $_POST['name'];
    $email = $_POST['email'];
    $message = $_POST['message'];
  
  //php mailer variables
    $to = get_option('aaaa@gmail.com');
    $subject = "Report";
    $headers = 'From: '. $email . "\r\n" .
      'Reply-To: ' . $email . "\r\n";
  
  echo "check";
  
  //Here put your Validation and send mail
  $sent = wp_mail($to, $subject, strip_tags($message), $headers);
        if($sent) {
        echo "sent";
        }//mail sent!
        else  {
        echo "failed";
        }//message wasn't sent
  }
  ?&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have developed a own word press site i need to use WP_mail() function to my contact form.</p>
  
  <p>please help me.</p>