K
K
Kirill Gorelov2016-06-02 15:56:35
PHP
Kirill Gorelov, 2016-06-02 15:56:35

How to get eml content?

Hello. There are a thousand eml files. This is email.
It is necessary to get the contents, first name and last name from it. The first and last names are contained in the body of the letter. If you view this file through a text editor, then the body of the letter is presented in an incomprehensible form.
Is there any way to solve this with php?
File-get-contents, to parse, outputs everything the same as a text editor.
There is thebat software. But viewing all emails one at a time is not an option.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max Kostikov, 2016-06-02
@mxms

The body of the letters is encoded, just understandable - according to the MIME standard.
Well, you were directed to the parser by the link above.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question