PHP Classes

simple output

Recommend this page to a friend!

      POP3 e-mail client  >  All threads  >  simple output  >  (Un) Subscribe thread alerts  
Subject:simple output
Summary:is it possible to just retrieve the subject and body
Messages:5
Author:james nahon
Date:2011-11-11 14:24:16
Update:2011-11-12 13:43:50
 

  1. simple output   Reply   Report abuse  
Picture of james nahon james nahon - 2011-11-11 14:24:16
hi there,
for what i need, i do not need the headers, other than the subject. i am not handling any attachments or even html based emails.

i have the script running correctly and i can view messages. when i set debig and html_debug to 0, i no longer get the body of the message.

how can i just retrieve the body and subject, and also, does this class support deleting messages?

thanks Manuel!

  2. Re: simple output   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2011-11-11 16:06:43 - In reply to message 1 from james nahon
You need to parse the message body for that. You can use the MIME parser class. Take a look at the parse_message.php and browse_mailbox.php example scripts.

  3. Re: simple output   Reply   Report abuse  
Picture of james nahon james nahon - 2011-11-12 00:26:59 - In reply to message 2 from Manuel Lemos
hi,
thanks for responding to my message!

in the browse_mailbox example, is there a way to read the message body into an array?

also, is it right that the body is not output unless debug mode is on?

  4. Re: simple output   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2011-11-12 05:37:26 - In reply to message 3 from james nahon
Yes, the MIME parser function Analyze returns the message body and other message elements. Just do not pass the SkipBody parameter to the Decode function.

The debug option just shows the TCP dialog. If you disable it, nothing is displayed. Do not be afraid to try it, so you do not have to ask about it.

  5. Re: simple output   Reply   Report abuse  
Picture of james nahon james nahon - 2011-11-12 13:43:51 - In reply to message 4 from Manuel Lemos
thank you so much for your help.