PHP Classes

truncated message body part

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  truncated message body part  >  (Un) Subscribe thread alerts  
Subject:truncated message body part
Summary:I Get "truncated message body part " errors but email decodes su
Messages:4
Author:Phil Lee
Date:2011-02-08 07:22:03
Update:2011-02-08 08:37:42
 

  1. truncated message body part   Reply   Report abuse  
Picture of Phil Lee Phil Lee - 2011-02-08 07:22:03
Hello, I'm using another class from this website to create a multi-part MIME encoded email but some of the recipients just get a blank email in their email client.

I've validated the MIME message using this tool:

mimevalidator.net/index.html

and it shows no errors.

I'm using your class to try and figure out what the error is that's causing my recipients blank emails but it gives me the following error:

> Warning: truncated message body part at position 117308 line 1515 column 1

The really odd thing is that if I set 'SkipBody'=>0 in test_message_decoder.php it successfully decodes the message

So now I'm confused ! It looks like my MIME message is correctly formated but this tool finds an error !? Which is correct ? I can send you the MIME message that I'm decoding if it helps.

Regards

Phil

  2. Re: truncated message body part   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2011-02-08 07:40:22 - In reply to message 1 from Phil Lee
Yes, make a sample message available so I can try to reproduce the problem.

  3. Re: truncated message body part   Reply   Report abuse  
Picture of Phil Lee Phil Lee - 2011-02-08 08:24:10 - In reply to message 2 from Manuel Lemos
Thanks for the speedy reply. You can see the MIME message here:

unwanted-domain-names.co.uk/manuel/ ...

Phil

  4. Re: truncated message body part   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2011-02-08 08:37:42 - In reply to message 3 from Phil Lee
Right, that is the expected behavior. The message is indeed missing the end separator mark. It may not be necessary, that is why the MIME parser class tolerates it just issuing a warning.

It does not produce the same warning when you have SkipBody enabled because it does not parse the body message part in that case.

If you control the message generation part, you may want to try the MIME message class to send your messages instead, as it produces well-formed messages.

phpclasses.org/mimemessage