Is there anyway to force everytime the PHP Mail() is used to force it to use SMTP authentication?
Maybe a setting through the PHP.ini file or a server configuration?
Webmasters Stack Exchange is a question and answer site for pro webmasters. It only takes a minute to sign up.Sign up to join this community
Another solution is to override your mail() to use your own function that use an external library like PHPmailer. It is possible with the APD extension.
On Windows you can force to use SMTP by changing php.ini (but I don't know if you can do authentication):
ini_set ( "SMTP", "smtp-server.example.com" );
On Linux, you need to configure the system-wide local mail agent.
You can use phpmailer project to work with email through your codes. This project uses SMTP for its activity. For more information, take a look at http://phpmailer.worxware.com/
Check this page, maybe it can be useful :