What is the best PHP imap email body decode class? #imap email body decode
Edit
by Amruta GOyal - 8 years ago (2016-07-20)
Need to encode =0D=0A=0D=0A such text to tab or new line
| When i use imap_body imap function it shows something like "=0D=0A=0D=0A" this instead of new line. |
Ask clarification
1 Recommendation
This class can be used to parse and decode MIME e-mail messages.
It supports decoding single RFC 2822 MIME messages or archives that aggregate multiple messages in the mbox format.
The decoded message data is returned as an array that describes one or more messages found in a message file or data string.
The bodies of multipart messages can be decoded into distinct sub-messages.
The message body data can decoded and saved to separate files, so the class can handle messages larger than the available memory.
The parser can tolerate some syntax errors in malformed messages that are not compliant with RFC 2822.
An auxiliar class is provided to parse and extract e-mail address lists from message headers.
| by Manuel Lemos package author 26695 - 8 years ago (2016-07-23) Comment
You need to pass the whole message including headers and body to this class. It will decode all the headers and body and return in an array easy for you to process. |