gerardojbaez / mailbodyparser
Parse e-mail content.
v0.1.2
2019-10-03 03:22 UTC
Requires (Dev)
- phpunit/phpunit: 7.5.*
This package is auto-updated.
Last update: 2024-12-29 07:09:13 UTC
README
TL;DR
use Gerardojbaez\MailBodyParser\Parsers\ForwardParser; $forwardParser = new ForwardParser(); /** @var Gerardojbaez\MailBodyParser\Forward $forward **/ $forward = $forwardParser->parse($bodyContent); $forward->getFromName(); // Jane Doe $forward->getFromEmail(); // jane@example.org $forward->getToName(); // Jim Doe $forward->getToEmail(); // jim@example.org $forward->getSubject(); // E-mail subject