The right use of the mail() PHP function

Due to recently increased activity of spammers we had to disable the ability to send emails from the nobody account on our servers. It is also not a very good practice to have your emails come from the user nobody as it is unprofessional and misleading.

Many smart hosting providers either already disabled that feature or will disable it soon.

To ensure that all your scripts are working with this change please modify them to use the mail() function by adding the “from” header to it. You should use the header this way with any email address and domain associated with your account. This way your emails will not be flagged as SPAM.

$headers = 

"From: your_name <[email protected]?]" .
"Reply-To: your_name <[email protected]?]" .
"MIME-version: 1.0";

mail($recipient, $subject, $content, $headers);