PHP Classes

Getting content of body.

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Getting content of body.  >  (Un) Subscribe thread alerts  
Subject:Getting content of body.
Summary:Getting content of body from decode information.
Messages:4
Author:Chris Talavera
Date:2008-11-06 22:44:22
Update:2009-05-15 08:12:43
 

  1. Getting content of body.   Reply   Report abuse  
Picture of Chris Talavera Chris Talavera - 2008-11-06 22:44:22
Can you tell me how I get the content of the body in Parts[1] using your PHP class? The Decode is returning this:

Array
(
[0] => Array
(
[Headers] => Array
(
[http/1.1 ] => 200 OK
[date:] => Thu, 06 Nov 2008 22:36:12 GMT
[server:] => Server
[embeddedsoapserver:] => WASP-C++ Vespa/4.6, build 2162 (Linux i686 2.6.18-8.el5a2xen #1 SMP Tue Apr 3 16:48:05 PDT 2007)
[mime-version:] => 1.0
[cneonction:] => close
[transfer-encoding:] => chunked
[content-type:] => multipart/related; boundary="xxx-WASP-CPP-MIME-Boundary-xxx-0x8c5d578-08c5d578-xxx-END-xxx"; type="text/xml"
)

[Parts] => Array
(
[0] => Array
(
[Headers] => Array
(
[content-type:] => text/xml; charset="UTF-8"
)

[Parts] => Array
(
)

[BodyPart] => 1
[BodyLength] => 526
)

[1] => Array
(
[Headers] => Array
(
[content-id:] => <0x9cb8180-0xa4520d8-0x9d34b48-0xa00b908-0xa08c538>
[content-type:] => application/binary
)

[Parts] => Array
(
)

[BodyPart] => 2
[BodyLength] => 2994
)

)

)

)

  2. Re: Getting content of body.   Reply   Report abuse  
Picture of Chris Talavera Chris Talavera - 2008-11-06 23:11:55 - In reply to message 1 from Chris Talavera
I figured this out. You cant Set SkipBody to 0 you need to remove the parameter completely.

  3. Re: Getting content of body.   Reply   Report abuse  
Picture of Mark Smith Mark Smith - 2009-05-05 22:06:06 - In reply to message 2 from Chris Talavera
Just what I was looking for ;)

  4. Re: Getting content of body.   Reply   Report abuse  
Picture of Par Par - 2009-05-15 08:12:43 - In reply to message 2 from Chris Talavera
Me to, great!