Discussion:
Zend_Mail reading Pop3
Snef
2007-08-11 20:47:03 UTC
Permalink
Hi,

The simple example in the documentation () is not working for me. It fails
when sending the 'USER...' command (the readResponse fails).

Does anybody have the example running???

Snef.
--
View this message in context: http://www.nabble.com/Zend_Mail-reading-Pop3-tf4254677s16154.html#a12108911
Sent from the Zend MFS mailing list archive at Nabble.com.
Snef
2007-08-11 21:47:00 UTC
Permalink
Strangly enough, someone else (with Linux) did get it working with a email
address I gave.
More Strangley......... using a Gmail account and it works like a charm....

HELP!
Post by Snef
Hi,
The simple example in the documentation () is not working for me. It fails
when sending the 'USER...' command (the readResponse fails).
Does anybody have the example running???
Snef.
--
View this message in context: http://www.nabble.com/Zend_Mail-reading-Pop3-tf4254677s16154.html#a12109333
Sent from the Zend MFS mailing list archive at Nabble.com.
Snef
2007-08-12 14:57:05 UTC
Permalink
After a good night of sleep I searched the Zend/Mail/Protocol/Pop3.php and
saw this function (line 130):

[code]
public function sendRequest($request)
{
$result = @fputs($this->_socket, $request."\n");
if (!$result) {
throw new Zend_Mail_Protocol_Exception('send failed - connection
closed?');
}
}
[/code]

When changing the fputs with "\r\n" it works just fine. Is it a bug?
Post by Snef
Strangly enough, someone else (with Linux) did get it working with a email
address I gave.
More Strangley......... using a Gmail account and it works like a charm....
HELP!
Post by Snef
Hi,
The simple example in the documentation () is not working for me. It
fails when sending the 'USER...' command (the readResponse fails).
Does anybody have the example running???
Snef.
--
View this message in context: http://www.nabble.com/Zend_Mail-reading-Pop3-tf4254677s16154.html#a12114866
Sent from the Zend MFS mailing list archive at Nabble.com.
Nico Edtinger
2007-08-15 21:41:32 UTC
Permalink
Hi Snef!

This was fixed two weeks ago. See <http://framework.zend.com/issues/
browse/ZF-1794>.

You could just patch the file to use \r\n, use the current version
from SVN (it's also in the 1.0 branch, but AFAIK there won't be a
release based on this branch) or wait for ZF 1.1.0.

nico
Post by Snef
After a good night of sleep I searched the Zend/Mail/Protocol/
Pop3.php and
[code]
public function sendRequest($request)
{
if (!$result) {
throw new Zend_Mail_Protocol_Exception('send failed - connection
closed?');
}
}
[/code]
When changing the fputs with "\r\n" it works just fine. Is it a bug?
Post by Snef
Strangly enough, someone else (with Linux) did get it working with a email
address I gave.
More Strangley......... using a Gmail account and it works like a charm....
HELP!
Post by Snef
Hi,
The simple example in the documentation () is not working for me. It
fails when sending the 'USER...' command (the readResponse fails).
Does anybody have the example running???
Snef.
--
View this message in context: http://www.nabble.com/Zend_Mail-
reading-Pop3-tf4254677s16154.html#a12114866
Sent from the Zend MFS mailing list archive at Nabble.com.
Loading...