InboundParser should make your life easier if you have to deal with inbound emails.
1.Email Parsing
2.Metadata Extraction
3.Content Extraction
4.Attachment Handling
5.Customization
You can install the package via composer:
composer require cirkan/mailinboundparser
$mailInboundParser = new CirkaN\MailInboundParser(new MailgunProvider());
echo $mailInboundParser->getDriver()
->setMailBody($mailBody)
->getSubject();
public function setMailBody(array $mailBody): self;
public function getSubject(): string;
public function getRawBody(): string;
public function getSender(): string;
public function getTimestamp(): string;
public function getHeaderValue(string $value): string;
public function getDate(): ?Carbon;
public function getHtmlBody(): string;
Mailgun
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.