title: first time trying email for with php, help would be appreciated
body: <p>I am trying to send some basic text data from a html form to an email. I found an article online with the php code contain below. Here is the link  to the article <a href="https://html.form.guide/email-form/php-form-to-email/" rel="nofollow noreferrer">https://html.form.guide/email-form/php-form-to-email/</a>. I am using easyphp dev server to run my code and it is reporting an error on line 22 of the php file. Here is the error:</p>
  <blockquote>
  <p>Parse error: syntax error, unexpected 'mail' (T_STRING) in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\form-to-email.php on line 22.</p>
  </blockquote>
  <p>Any help in clarifying what this means would be greatly appreciated as this is my first time attempting this. Thanks in advance.</p>
  <pre><code>&lt;?php
  $name = $_POST['name'];
  $visitor_email = $_POST['email'];
  $message = $_POST['message'];
  
  $email_from = 'exampleemail@example.com';
  
  $email_subject = &quot;New Form submission&quot;;
  
  $email_body = &quot;You have received a new message from the user $name.\n&quot;.
                          &quot;Here is the message:\n $message&quot;.
                          
  
  $to = &quot;exampleemail@example.com&quot;;
  
  $headers = &quot;From: $email_from \r\n&quot;;
  
  $headers .= &quot;Reply-To: $visitor_email \r\n&quot;;
  
  
  ini_set(25)
  mail($to,$email_subject, $email_body,$headers);
  
  ?&gt;
  </code></pre>