PHP Classes

$body array incomplete

Recommend this page to a friend!

      POP3 e-mail client  >  All threads  >  $body array incomplete  >  (Un) Subscribe thread alerts  
Subject:$body array incomplete
Summary:Body does not contain real message body
Messages:3
Author:Luca Nonato
Date:2011-05-17 15:48:12
Update:2011-05-18 13:06:25
 

  1. $body array incomplete   Reply   Report abuse  
Picture of Luca Nonato Luca Nonato - 2011-05-17 15:48:12
Hi!

First of all: Great class! :)

Then the problem: i found that the $body array is incomplete. It contains 1 or 2 lines even if the e-mail is 8 lines long. I can send you the message files from our mailserver, if this can help.

--8<----8<----8<----8<--
Original body:
---
28/05/2011
raviolo
39/05/2011
29/05/2011


Ciao,
Luca
--8<----8<----8<----8<--
Body retrieved:
---
Array ( [0] => 28/05/2011 [1] => raviolo [2] => )
--8<----8<----8<----8<--
Original body:
---
Ignorami...


Ciao,
Luca
--8<----8<----8<----8<--
Body retrieved:
---
Array ( [0] => Ignorami... [1] => [2] => )
--8<----8<----8<----8<--

Does make sense?

FYI i'm using this to create a page for our website to allow (Our softball team) players to tell the coach (and other players) if they're available for each game, via web or e-mail...


Cheers!
Luca

  2. Re: $body array incomplete   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2011-05-17 21:52:45 - In reply to message 1 from Luca Nonato
That is because you are calling RetrieveMessage function asking only for 2 lines of the body part. Pass -1 instead of 2 in the last parameter, so it retrieves the whole message.

  3. Re: $body array incomplete   Reply   Report abuse  
Picture of Luca Nonato Luca Nonato - 2011-05-18 13:06:25 - In reply to message 2 from Manuel Lemos
Whoops! Sorry, my bad... I should have checked the class twice before posting this...


Cheers!