zbateson / mail-mime-parser

An email parser written in PHP
https://mail-mime-parser.org/
BSD 2-Clause "Simplified" License
458 stars 58 forks source link

getHtml or gettextContent() returns null #168

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi, just started using the library and is working nicely.

tested with an .eml file and the getHtmlContent() function returned the data correctly.

then tried with an outlook .msg file. its returning the correct to/from/cc/subject without issue, but does not return the message content either getText or getHtmlContent() -- everything is empty

not sure where to start to investigating at.

Thanks,

zbateson commented 3 years ago

Hi @sticcino --

"msg" is a proprietary Microsoft format, it's not a raw 'mime' message (and therefore not readable by this library).

All the best

ghost commented 3 years ago

appreciated, thanks for the explanation