php.net |  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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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", "blah@blah.com");
mail("me@blah.com", "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.

-Christian

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-11 02:48 UTC] mfischer@php.net
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 http://www.php.net/support.php
 [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 smtp.mail.yahoo.com with a vaild @yahoo.com 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] wez@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC