-
|
Hello, First of all Thank you very much for this very nice piece of work. I would like to know if I can use the php-mime-mail-parser by directly accessing the classes. I don't want to install composer. For example, I would to do this: $path = 'temp/myemail.eml'; Kind Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 11 replies
-
|
Yes of course it's possible like any PHP packages but it's harder to maintain. |
Beta Was this translation helpful? Give feedback.
-
|
Did you manage it to use php-mime-mail-parser without installing it via composer? If so, can you please tell me how? I'd like to use this class on a virtual host, where I don't have access to SSH/composer. The mailparse extension is available. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, `<?php $path = 'email.eml'; // 1. Specify a file path (string) $html = $parser->getMessageBody('html'); echo $html; Please help |
Beta Was this translation helpful? Give feedback.
-
|
Hi, require_once 'Contracts/ParserInterface.php'; $path = 'email.eml'; echo $parser->getSubject(); // works fine Best regards Christoph |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your answer |
Beta Was this translation helpful? Give feedback.
-
|
I'm closing this conversation because it's really difficult to understand the answer, because I changed the name of the branch:
|
Beta Was this translation helpful? Give feedback.
Yes of course it's possible like any PHP packages but it's harder to maintain.