The IP from which PHP sends email is entirely dependent on your Sendmail settings-- the host option is for using a SMTP relay when in windows.
-----Original Message----- From: Doug [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 9:22 PM To: [EMAIL PROTECTED] Subject: [PHP-INSTALL] mail() Hello I was just wondering how I can get php to change what ip it sends mail on. As the defaut when you use the mail() function it uses localhost 127.0.0.1. Now I want it to use my sendmail mamil server's ip, I have my sendmail's smtp options set to my ip address.... xx.xx.xx.xx . In the php.ini it has host options but it says that those are only used for windows. any heldp would be great D.