So, how can I set php's mail() function to use smtp authentication?
I have a web server and then an mail server. All company's email, incoming or outgoing, passes through the mail server and I was wondering how to set the web server to use mail() function with SMTP authentication at the mail server.
Note: I need to do this globally, not to go file by file that runs the mail function in each site and start editing.
