I have written some code, which collects emails through a pop3 server, Got it working, however fails to read big emails.
From what Ive read I need to use a while loop, but when I read just 1 email, I get timeout error. In my working example takes milliseconds to pull the email, and about 3 seconds to collect 110 emails.
Do I need to tell it to go to the next line and read?
$handle = fopen("c:\\test\\51.eml", 'a');
$buffer = fgets($popOpen, 4096);
$handle = fopen("c:\\test\\51.eml" . $counter . ".eml", 'a');
fwrite($popOpen,"RETR " . $counter . "\n");