php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4756 Mail Function Times Out. Warning Failed to Receive
Submitted: 2000-06-01 15:06 UTC Modified: 2000-07-18 08:39 UTC
From: dmullen at vis dot net Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Release Candidate 2 OS: Windows 2000 server
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: dmullen at vis dot net
New email:
PHP Version: OS:

 

 [2000-06-01 15:06 UTC] dmullen at vis dot net
I loaded PHP4 per the instructions and it does indeed 
operate. However when I try and use the mail() function
it times out (after a few minutes) "Warning failed to receive.  After multiple tries with different settings in the php.ini file I gave up and loaded PHP3 (3.0.16) and it
works!  I downloaded the sources (3 & 4) and went through sendmail.c for win32 and noticed a difference in the SendText(..) function there.  Version 3 had \r\n when it
was sending HELO, MAIL FROM, RCPT TO, and DATA commands to the SMTP server. Version 4 did not, it only had \n . I'm not sure if this is the problem but, Version 4 was making a connection to the mail server but it appeared not to be communicating properly.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-01 16:00 UTC] hholzgra at cvs dot php dot net
RFC821 (SMTP) does indeed specify \r\n for line breaks
although some implementations might accept a single \n

i'll work through this later today, as there is at least
one other issue regarding RFC821 that isn't taken care
of in the code either ... 
 [2000-06-07 21:14 UTC] hholzgra at cvs dot php dot net
haven't done this yet as a haven't installed
all those bits and pieces for Win32

i will check in the CRLF changes later this evening

but the DATA itself will nedd CRLF conversion
and special treatment for lines beginning with
a dot, too

as theese are changes i don't want to check in 
untested this part is on hold until i have a
working win32 compile setup
 [2000-07-18 08:36 UTC] hholzgra at cvs dot php dot net
should be fixed in cvs
 [2000-07-18 08:39 UTC] hholzgra at cvs dot php dot net
so it's closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 02:01:28 2024 UTC