title: PHP email are not sending email
body: <p>I am doing code to let the user after he write his mail the website will send for him code to verify his email. But the code are not give me any error also are not sending email to me.</p>
  <p><strong>Body</strong></p>
  <pre><code>        &lt;div class=&quot;container&quot; style=&quot;margin-top: 70px;&quot;&gt;
            &lt;form action=&quot;createaccountPageStepTwo.php&quot;&gt;
              &lt;div class=&quot;formcreate bg-light bg-gradient shadow-lg p-3 mb-5 bg-body rounded col-8&quot;&gt;
                  &lt;div class=&quot;position-relative m-4&quot;&gt;
                      &lt;div class=&quot;progress&quot; style=&quot;height: 1px;&quot;&gt;
                        &lt;div class=&quot;progress-bar&quot; role=&quot;progressbar&quot; style=&quot;width: 0%;&quot; aria- 
                         valuenow=&quot;0&quot; aria-valuemin=&quot;0&quot; aria-valuemax=&quot;100&quot;&gt;&lt;/div&gt;
                      &lt;/div&gt;
                      &lt;button type=&quot;button&quot; class=&quot;position-absolute top-0 start-0 translate-middle 
                       btn btn-sm btn-primary rounded-pill&quot; style=&quot;width: 2rem; 
                       height:2rem;&quot;&gt;1&lt;/button&gt;
                      &lt;button type=&quot;button&quot; class=&quot;position-absolute top-0 start-50 translate-middle 
                       btn btn-sm btn-secondary rounded-pill&quot; style=&quot;width: 2rem; 
                       height:2rem;&quot;&gt;2&lt;/button&gt;
                      &lt;button type=&quot;button&quot; class=&quot;position-absolute top-0 start-100 translate- 
                      middle btn btn-sm btn-secondary rounded-pill&quot; style=&quot;width: 2rem; 
                      height:2rem;&quot;&gt;3&lt;/button&gt;
                    &lt;/div&gt;
                  &lt;p id=&quot;signText&quot;&gt; Signup Form&lt;/p&gt;
                  &lt;div class=&quot;row g-3&quot;&gt;
                      &lt;div class=&quot;col&quot;&gt;
                        &lt;input name=&quot;firstName&quot; type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;First 
                         name&quot; aria-label=&quot;First name&quot; required&gt;
                      &lt;/div&gt;
                      &lt;div class=&quot;col&quot;&gt;
                        &lt;input name=&quot;lastName&quot; type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;Last 
                         name&quot; aria-label=&quot;Last name&quot; required&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                    &lt;div class=&quot;row g-3&quot;&gt;
                      &lt;div class=&quot;col&quot;&gt;
                        &lt;input name=&quot;password&quot;id=&quot;password&quot; type=&quot;password&quot; class=&quot;form-control 
                        passwordPov&quot; placeholder=&quot;Password&quot; aria-label=&quot;Password&quot; required&gt;
                      &lt;/div&gt;
                      &lt;div class=&quot;col&quot;&gt;
                        &lt;input name=&quot;retypePassword&quot; id=&quot;retypePassword&quot; type=&quot;password&quot; 
                        class=&quot;form-control passwordPov&quot; placeholder=&quot;Retype Password&quot; aria- 
                        label=&quot;RetypePassword&quot; required&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                    &lt;div class=&quot;mb-3&quot;&gt;
                      &lt;label for=&quot;exampleInputEmail1&quot; class=&quot;form-label&quot;&gt;&lt;/label&gt;
                      &lt;input name=&quot;email&quot; type=&quot;email&quot; placeholder=&quot;Email&quot; class=&quot;form-control&quot; 
                      id=&quot;exampleInputEmail1&quot; aria-describedby=&quot;emailHelp&quot; required&gt;
                      &lt;div id=&quot;emailHelp&quot; class=&quot;form-text&quot;&gt;We'll never share your email with anyone 
                      else.
                     &lt;/div&gt;
                    &lt;/div&gt;
                    &lt;button type=&quot;submit&quot; class=&quot;btn btn-success buttonPos&quot;&gt;Next&lt;/button&gt;
                &lt;/form&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  <p><strong>php</strong></p>
  <pre><code>        &lt;?php
          
              if(isset($_POST['email']))
              {
                  $headers = &quot;From: exampe &lt;exaple@example.com&gt;\r\n&quot;;
                  $to_visitor = $_POST[&quot;email&quot;];
                  $common_data = $_POST[&quot;Welcome to example website verfy code are ( 0000 )&quot;];
                  mail($to_visitor, &quot;Your Memory&quot;, $common_data, $headers);
              } 
              
          ?&gt;
  </code></pre>
  <p>So what I want that when the user press next the website will send code to the user email and website will take user email through <code>email input</code></p>
  <p>I hope my question are clear</p>