Mail-function! Help!
| From: | Vegard | Date: | Thu, 15 Mar 2001 08:11:10 +0000 |
| Subject: | Mail-function! Help! | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-6045@lists.php.net to get a copy of this message | ||
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", "user@my.domain");
in the script, but still I get: "Failed to Connect" :-(
Please enlighten me!
Vegard.