PHP Classes

body on multipart/alternative messages

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  body on multipart/alternative messages  >  (Un) Subscribe thread alerts  
Subject:body on multipart/alternative messages
Summary:body on multipart/alternative messages
Messages:4
Author:arnaudroyone
Date:2015-12-31 00:18:18
 

  1. body on multipart/alternative messages   Reply   Report abuse  
Picture of arnaudroyone arnaudroyone - 2015-12-31 00:18:18
Hi,
i use the class, and it's really cool

I've just a trouble to have body when it's a multipart/alternative message.
I've tried lot of configuration, but nos success.

There is a txt part and a html part, i would like to store the 2 parts.
How can i do this ?

Thank's a lot and many thanks for you job on this class.
Sorry for my poor English, i'm French ;)

Arnaud

  2. Re: body on multipart/alternative messages   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-12-31 01:47:38 - In reply to message 1 from arnaudroyone
The main example message has a multipart/alternative body and both text and HTML parts are returned.

Aren't you seeing both parts in the parsing results?

  3. Re: body on multipart/alternative messages   Reply   Report abuse  
Picture of arnaudroyone arnaudroyone - 2015-12-31 07:41:17 - In reply to message 2 from Manuel Lemos
Thanks for your answer.
I've look at the script test, but i'm not really understand all because i'm not a professional.

I use this script to parse email :
damnsemicolon.com/php/parse-emails- ...

It use your class to work.
In the body section, there is only a code to have the text/plain return.
I've doing the same for text/html and it's ok, but when it's a multipart/alternative message, only the txt part is selected.

Do you think you can help me on this script ?


  4. Re: body on multipart/alternative messages   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-01-02 02:12:00 - In reply to message 3 from arnaudroyone
Just try the test_message_decoder.php example script and in the file name put "php://stdin" instead of 'test/sample/message.eml' .

phpclasses.org/package/3169-PHP-Dec ...