Re: [PHP-DEV] pear's Mail using smtp not working with cvs php

2002-10-03 Thread Scott Carr
It appears to be some kind of timeout that it is waiting for. 60 seconds tends to be a timeout. Mabye it is trying to fill the full 2048, and waiting till the timeout is past. -- Scott Carr OpenOffice.org Documentation Maintainer http://documentation.openoffice.org/ Quoting Matt Haught

Re: [PHP-DEV] pear's Mail using smtp not working with cvs php

2002-10-02 Thread Jan Schneider
Zitat von Matt Haught [EMAIL PROTECTED]: I am trying to use pear's Mail functions to send email to my local smtp server (FreeBSD 4.4 using qmail-smtpd), but it sort of gets hung up when communicating with the smtp server. (I also tried a 2nd smtp server with the same hang). It can take

Re: [PHP-DEV] pear's Mail using smtp not working with cvs php

2002-10-02 Thread Matt Haught
I have made a little test script to see where the hang is occuring instead of figuring out pear today: ?php function getmicrotime() { list($usec, $sec) = explode( ,microtime()); return ((float)$usec + (float)$sec); } $a = getmicrotime(); $fp = fsockopen('mail.haught.org', 25, $errno,

Re: [PHP-DEV] pear's Mail using smtp not working with cvs php

2002-10-02 Thread Jan Schneider
Zitat von Matt Haught [EMAIL PROTECTED]: It appears that fgets is where the problem is occuring. Its taking over a minute. Can anyone confirm? I tried a server at mail.wvwc.edu and received the same sort of results. Confirmed. Jan. -- http://www.horde.org - The Horde Project

Re: [PHP-DEV] pear's Mail using smtp not working with cvs php

2002-10-02 Thread Wez Furlong
On 02/10/02, Matt Haught [EMAIL PROTECTED] wrote: 250-haught.org (Read took 60.009819984436 seconds) It appears that fgets is where the problem is occuring. Its taking over a minute. Can anyone confirm? I tried a server at mail.wvwc.edu and received the same sort of results. The problem

[PHP-DEV] pear's Mail using smtp not working with cvs php

2002-10-01 Thread Matt Haught
I am trying to use pear's Mail functions to send email to my local smtp server (FreeBSD 4.4 using qmail-smtpd), but it sort of gets hung up when communicating with the smtp server. (I also tried a 2nd smtp server with the same hang). It can take many minutes (way over the script's time out

Re: [PHP-DEV] pear's Mail using smtp not working with cvs php

2002-10-01 Thread Scott Carr
I have seen in the past that the SMTP code loses \r\n as it's end lines. These need to be present or you see this hang. SMTP end line is \r\n not \n. -- Scott Carr OpenOffice.org Documentation Maintainer http://documentation.openoffice.org/ Quoting Matt Haught [EMAIL PROTECTED]: I am

Re: [PHP-DEV] pear's Mail using smtp not working with cvs php

2002-10-01 Thread Scott Carr
The file that is suspect is pear/Net/SMTP.php mailFrom() rcptTo() data() These are the functions that could have the error. The lines that show socket-write are where you should see '\r\n'. -- Scott Carr OpenOffice.org Documentation Maintainer http://documentation.openoffice.org/ Quoting