Mail() and smtp authenication

Hopefully the title says it all!

I used mail() and ini_set to set details of my smtp server, however it uses smtp authentication. How can I get passed, or set it to authenicate?

Many thanks

I suggest you use PHPmailer or similar class:
http://phpmailer.worxware.com/index.php?pg=phpmailer

ah - so it isnt possible then.

i will probably wait until i upload it to the host, am only testing locally at the moment.

Well, not that it is completely impossible. It’s just one of those things that revolve around not reinventing bicycle (unless you have to/want to)