PHP 7 Mail() not working
<p>I have read I believe every post on here related to this.  I have a feeling that this is Linux file rights related, but not to sure. My environment is a test Centos7 box running Apache 2.4 and Php7 with phpMyAdmin etc.  I can send mail using the sendmail somename@domain.com.  I have tested this.<br>
In my php.ini file(s) I have <code>"sendmail_path = /usr/sbin/sendmail -t -i;"</code> </p>

<pre><code>$to = "Jesse.---@-----------.com";
$subject = "My subject";
$txt = "Hello world!";
$headers = "From: webmaster@example.com" . "\r\n" .
            "CC: somebodyelse@example.com";
$mail = mail($to,$subject,$txt,$headers); //I have tried with no headers as well.
</code></pre>

<p>The mail function  returns a false.</p>