hai,
i am developing an application for fetching emails using pop3 but all the time i am getting only latest one email only.my requirement is fetching the latest 5 emails in my mailbox.
i am using the 'mime_parser.php' class for fetching emails.
can any one help me regarding this problem?
sooraj h kumar - 2012-02-01 14:38:57 - In reply to message 2 from Manuel Lemos
tanks that works for me..
but i hve another problm.i cannot fetch the mail content properly.The Retrieve message function doesnot returns the mail content in the proper way.
Manuel Lemos - 2012-02-02 18:42:14 - In reply to message 5 from sooraj h kumar
That is because you first need to call OpenMessage to tell which message you want to read.
You can also use the the class POP 3 stream handler function that allows you to access mailbox messages with PHP file functions like fopen, fread. Take a look at the browse_mailbox.php example.
Manuel Lemos - 2012-04-09 18:57:52 - In reply to message 8 from Aravind
GetMessage method
- the $count argument indicates the number of bytes to be read from an opened message.
- The $message returns by reference the data read from the message.
- The $end_of_message argument returns by reference a boolean value indicated whether it was reached the end of the message.