I would like to know if there is a way to use a different SMTP server with the mail() function other then the one that is defined in the php.ini file.
somewhere in your script before you call mail() put:
ini_alter("SMTP","new_host");
or of course, you can do it the complex way and open a socket to a mail server and use fputs to put in headers and the message and send it..