I want to use a external SMTP server with the mail function (under Win32) but i need to make an authentication (user and password) on the server when i call the mail function (or before). Anyone knows how ?
Are you sure? The only thing I had to do was change the host from "localhost" to the IP of the SMTP server.
There aren't any authentication options in the php.ini file, so I assume any authentication would have to be done within PHP itself, and I'm sure the documentation on www.php.net is adequate.
I want to use a external SMTP server with the mail function (under Win32) but i need to make an authentication (user and password) on the server when i call the mail function (or before). Anyone knows how ?
Desbaratizador
PHP's mail function doesn't allow you to authenticate to the SMTP server. I've attached a copy of a mailing class which does allow authentication though. This is how you use it: