No problem at all. I don't believe that enabling McAfee email protection would touch the php.ini
file. I had 2 other customers today also have similar issues with the default PHP mail() function due to changes to this file, and I submitted a ticket to our senior system admin team to have them review if this was a problem on our end, so I apologize for that and the confusion.
In order to get your e-mails that are sent from a PHP script to not be considered junk/spam by most email filters enabling SPF records can help, but most are still going to see a direct mailing from a PHP script unauthenticated and weight it as such. Essentially from a mail server perspective if you're checking the mail headers and you see the email was sent from a PHP script you have no way to verify that even though that domain has SPF records setup and a good mailing history that a malicious PHP script wasn't just placed on an account and used to relay spam.
This is where enabling SMTP Authentication
in your PHP scripts can help a lot. That's because instead of directly calling the PHP mail() function to relay a message unauthenticated, your PHP script would instead literally go out to your SMTP host and have to authenticate with a valid email account and password that actually exists. A lot more trust from a mail server's perspective can be given to these types of PHP relayed mails, because if some random attacker happened to just place a PHP mailer script on your account, they still wouldn't know your valid email account credentials which allow you to confirm you're a real mail user of that domain.
We have a guide on using phpMailer to send mail in PHP
which has built-in SMTP authentication and is a more robust PHP mailing solution.
It also has the ability to add a reply-to
header, so that your email can still come from an actual existing email account on your own domain, but when you reply it can go to the person who submitted the form to your website.
The key things to look to adjust for these 2 things in that script would be this section of the phpMailer code:
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "jswan"; // SMTP username
$mail->Password = "secret"; // SMTP password
$mail->From = "firstname.lastname@example.org";
$mail->FromName = "Mailer";
$mail->AddAddress("email@example.com", "Josh Adams");
$mail->AddAddress("firstname.lastname@example.org"); // name is optional
Please let us know if you have any further questions at all, and sorry again for any inconvenience or confusion about the default PHP mail() function ceasing to function properly.