I'm running PHP 4.3.2 on RedHat 9.0 with sendmail 8.12.10 (just to be painfully detailed). I have some code that is successfully using the mail() function to send out mail. I want to be able to specify at run time, through some sort of parameter to something, the SMTP server that should be used to deliver the mail. It looks like this would be possible if I were running Windows, through ini_set(SMTP) or somesuch thing, but the SMTP parameter is marked as Windows only in the php init file.
Is there a way to do this with Linux and sendmail? How does PHP's mail() know what SMTP server to use, anyhow?
Thanks,
Jim