gerardojbaez/mailbodyparser

Parse e-mail content.

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

This package is auto-updated.

Last update: 2024-10-29 06:19:26 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