Please note that not PHP itself will send a mail, it's just a wrapper for Linux's sendmail or other mail tools
Good guideline on how to send mails natively with mail():
See also:
http://stackoverflow.com/a/24644450/1114320
See also:
http://www.php.net/manual/en/function.mail.php