PHP Classes

how to only read messages once

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  how to only read messages once  >  (Un) Subscribe thread alerts  
Subject:how to only read messages once
Summary:how to read a mailbox and only retrieve new messages
Messages:11
Author:james nahon
Date:2013-02-14 11:37:34
Update:2013-02-21 17:54:25
 
  1 - 10   11 - 11  

  11. Re: how to only read messages once   Reply   Report abuse  
Picture of james nahon james nahon - 2013-02-21 17:54:25 - In reply to message 10 from Manuel Lemos
hi manuel,

thanks for having a look! I am pleased to say that enabling debug mode and reading it through has fixed the problem!

The issue was here:

$pop3->DeleteMessage('$i');

that meant the POP3 command was:

C DELE $i

i have changed the PHP to:

$pop3->DeleteMessage($i);

so that the POP3 command is:

C DELE 1

and it now works and is deleting messages from the mailbox!

thanks so much for the help and the great class!!!

 
  1 - 10   11 - 11