Re: mail() --> "failed to recieve" error
| From: | Court Shrock | Date: | Mon, 09 Sep 2002 19:56:31 +0000 |
| Subject: | Re: mail() --> "failed to recieve" error | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15736@lists.php.net to get a copy of this message | ||
Sorry to bother everyone...found the cause....SMTP on IIS5 doesn't bind
to 127.0.0.1 by default. Changed php.ini to use the ip address of its
interface and the everything worked. Found this out by putting the same
script on a different server, but pointing smtp to the original server.
On Mon, 2002-09-09 at 12:43, Court Shrock wrote:
> When trying to (and nothing more):
>
> <?php
> mail('valid_email@valid_host.com', 'Subject', 'Body');
> ?>
>
> getting the message "Failed to receive: in path_the_file_being_run".
>
>
> Tried php v4.1.2 and 4.2.3 with the same results.
>
>
> The box is Win2k server and IIS5. A SMTP relay is listening on
> localhost. The php.ini settings are set to point to 'localhost' (a
> valid email address is set in sendmail_from). Testing the MTA by itself
> works properly.
>
> http://bugs.php.net hint that is was fixed in CVS back in 2000.
> Any
> ideas?
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php