gerardojbaez/mailbodyparser

Parse e-mail content.

v0.1.2 2019-10-03 03:22 UTC

This package is auto-updated.

Last update: 2021-10-01 00:18:03 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