Hi all
I simply can't retrieve a pop3 message from a server using PHP. I can do it in telnet, with the same commands, but in PHP, using RETR 1 or TOP 1, -1 simply says '+OK, headers follow' or it just gives me the size of the message in octets, which isn't much use.
I've tried everything, and different variants for the comamnds. The code I'm using is:
//assume connection already opened using fsockopen and logged in successfully
fwrite($fp, "RETR 1\n"); //tried without \n
echo fgets($fp, 1000000);
Have also tried replacing RETR with TOP 1 -1, the negative number supposedly meaning to show all the message.
How on earth can I display a message!? Thanks in advance.
p.s. I can't use IMAP so please don't suggest!