php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21081 SMTP set to localhost or 127.0.0.1 doesn't work.
Submitted: 2002-12-18 12:38 UTC Modified: 2003-01-02 18:52 UTC
From: 007 at pathcom dot com Assigned:
Status: Closed Package: Mail related
PHP Version: 4.2.2 OS: Windows 2000
Private report: No CVE-ID: None
 [2002-12-18 12:38 UTC] 007 at pathcom dot com
I am using PHP versio 4.2.2 on Windows 2000, installed with php-4.2.2-installer.exe.

MS SMTP is running and works fine with CDONTS in ASP.

But PHP cannot send email if php.ini is set to SMTP =localhost or to SMTP =127.0.0.1.

It does work if set to my ISP's SMTP server.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-19 18:52 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

Is your SMTP server (local) using any sort of authentication scheme?
 [2002-12-23 08:38 UTC] 007 at pathcom dot com
My SMTP server (local) outgoing service is set to anonymous authentication and so requires no user name or password to send outgoing mail.
 [2002-12-24 12:39 UTC] 007 at pathcom dot com
The bug seems to be with the php-4.2.2-installer.exe version on Windows 2000. If the mail is sent to ""Mary <mary@example.com>"(as written in the PHP manual) and if the PHP SMTP setting is set to "Localhost", then the mail will not be sent and you will get a "Warning: Server Error in ..." error message. This does not happen if I use ASP with CDONTS to send the same recipient format, so I know the problem is not with Microsoft'a SMTP server. It also doesn't happen if the mail is sent with PHP, still sending to "Mary <mary@example.com>" but with SMTP set to an outside SMTP server.

Has this been fixed in the PHP Manual and/or in PHP 4.2.3?
 [2003-01-02 18:52 UTC] sniper@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 03:01:28 2024 UTC