|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15495 mail() Warning failed to connect
Submitted: 2002-02-11 00:42 UTC Modified: 2002-02-11 04:33 UTC
From: chris_essner at yahoo dot com Assigned:
Status: Not a bug Package: Mail related
PHP Version: 4.1.1 OS: XP Pro and 2000 Pro
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: chris_essner at yahoo dot com
New email:
PHP Version: OS:


 [2002-02-11 00:42 UTC] chris_essner at yahoo dot com
I am running Apache Version Apache/1.3.22 

ScriptAlias /php/ "f:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
LoadModule php4_module f:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php

php script:

ini_set("SMTP", "");
mail("", "My Subject", "My Body");

I get 
Warning: Failed to Connect in C:\apache\htdocs\mail_test.php on line 3

The same script works fine on my FreeBSD box. I have seen posts around the same issue but have not grasped a clear understanding of any type of resolve.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-11 02:48 UTC]
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit
 [2002-02-11 03:04 UTC] chris_essner at yahoo dot com
I'll be sure to follow your request to throw this into the support forum but I think this is a bug regardless.
 [2002-02-11 03:16 UTC] chris_essner at yahoo dot com
My apologies. It looks as though one must be sure of their smtp server. I am trying to use with a vaild address but it is still not working.
 [2002-02-11 03:18 UTC] chris_essner at yahoo dot com
If that last comment I made were true, however, why am I not getting the same error message on the FreeBSD box?
 [2002-02-11 04:33 UTC]
Haven't yahoo recently switched to authenticated smtp?
I believe you need to log in to your POP3 mailbox from
the machine that you want to send mail from, otherwise
it will not allow you to connect.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Apr 01 08:03:37 2023 UTC