I have php4 and Apache running on Windows 2000, and Im not able to get the mail-function to work. The mailsystem is on an other PC, and so I added SMTP=<mailservers IP-address> in the php.ini file. But still I get "Failed to connect" when I run mail(). I have heard that there can be a problem if the mailserver is separated from the webserver and you have a firewall? Do I have to do anything in the mailsystem? Or maybe in httpd.conf ?? I'v also tryed to add: ini_set("SMTP", "<ip-address>"); ini_set("sendmail_from", "[EMAIL PROTECTED]"); in the script, but still I get: "Failed to Connect" :-( Please enlighten me! Vegard. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]